Class PunchOutOrderRequiresCalculationStrategy
java.lang.Object
de.hybris.platform.b2b.punchout.order.PunchOutOrderRequiresCalculationStrategy
- All Implemented Interfaces:
OrderRequiresCalculationStrategy
public class PunchOutOrderRequiresCalculationStrategy
extends Object
implements OrderRequiresCalculationStrategy
Allows for calculation to be enabled only if the order is not a PunchOut order and the default strategy allows it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OrderRequiresCalculationStrategyprotected PunchOutSessionServicebooleanrequiresCalculation(AbstractOrderEntryModel orderEntry) Method checks if the order entry need to be calculated.booleanMethod checks if the order need to be calculated.voidsetDefaultStrategy(OrderRequiresCalculationStrategy defaultStrategy) voidsetPunchOutSessionService(PunchOutSessionService punchoutSessionService)
-
Constructor Details
-
PunchOutOrderRequiresCalculationStrategy
public PunchOutOrderRequiresCalculationStrategy()
-
-
Method Details
-
requiresCalculation
Description copied from interface:OrderRequiresCalculationStrategyMethod checks if the order need to be calculated.- Specified by:
requiresCalculationin interfaceOrderRequiresCalculationStrategy- Parameters:
order-AbstractOrderModelto check- Returns:
- false only if the punchout cart is invalid
-
requiresCalculation
Description copied from interface:OrderRequiresCalculationStrategyMethod checks if the order entry need to be calculated.- Specified by:
requiresCalculationin interfaceOrderRequiresCalculationStrategy- Parameters:
orderEntry-AbstractOrderEntryModelto check- Returns:
- true only if both default strategy and this strategy are fulfilled
-
getDefaultStrategy
-
setDefaultStrategy
-
getPunchOutSessionService
-
setPunchOutSessionService
-