Fix the discount to be calculated with the order and line item discounts