Currently discount is calculated from net prices. Make it possible to control whether discount should be calculated from gross prices.