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 OrderRequiresCalculationStrategybooleanrequiresCalculation(AbstractOrderEntryModel orderEntry) Method checks if the order entry need to be calculated.booleanMethod checks if the order need to be calculated.voidsetDefaultStrategy(OrderRequiresCalculationStrategy defaultStrategy)
-
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:
- true only if both default strategy and this strategy are fulfilled
-
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
-