Class PromotionOrderEntryAdjustAction

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
GeneratedCachedPromotionOrderEntryAdjustAction

public class PromotionOrderEntryAdjustAction extends GeneratedPromotionOrderEntryAdjustAction
PromotionOrderEntryAdjustAction. Action to create a fixed price adjustment to a specific quantity of products. The adjustment is applied against the unit price of the OrderEntry. For this reason if the OrderEntry quantity is different from the number to adjust we need to evenly distribute the discount so that the cart is correctly calculated. The only other way to deal with this would be to split the OrderEntry into two, one with the already used items and one with the discounted items, but this would mean invalidating the promotion context as it wraps all of the OrderEntry objects Applying this action creates an order entry discount value for the first order entry with sufficient quantity of products. Undoing this action removes the order entry discount value created. If there is no single order entry with at least GeneratedPromotionOrderEntryAdjustAction.getOrderEntryQuantity(de.hybris.platform.jalo.SessionContext) quantity of product GeneratedPromotionOrderEntryAdjustAction.getOrderEntryProduct(de.hybris.platform.jalo.SessionContext) then this action will fail to apply. This can happen if the product quantity is split across multiple order entries.
See Also: