This pull request fixes issues with the way discounts are calculated. Tax deductions were being removed before the discount had been applied, resulting in too much tax being reduced.
Fixed issue in Item\EventListener where tax calculation happens before discounts are applied
Added getTotalNetPrice() method to Item\Collection
Added getTotalDiscountedPrice method to Item\Collection
Added getDiscountedPrice method to Item (returns $actualPrice - $discount)
Adds type field to discount order entity
Calculates discounts of a set value before calculating percentage discounts
This pull request fixes issues with the way discounts are calculated. Tax deductions were being removed before the discount had been applied, resulting in too much tax being reduced.
getTotalNetPrice()
method to Item\CollectiongetTotalDiscountedPrice
method to Item\CollectiongetDiscountedPrice
method to Item (returns$actualPrice - $discount
)type
field to discount order entity