Skip to Content
0
Former Member
May 13, 2016 at 12:30 PM

Why ProductPercentageDiscountPromotion is applied as an absolute DiscountValue?

142 Views

I spotted that ProductPercentageDiscountPromotion which is percentage promotion for product is applied to the AbstractOrderEntry as DiscountValue which isAbsolute() method returns true. Why is percentage promotion applied as absolute value? This is causing incorrect calculation if quantity of the AbstractOrderEntry is changed. To make it work correctly you have to recalculate or/and updatePromotions from the promotions service.