Class GetOrderPositionTotalDirective
java.lang.Object
ch.tocco.nice2.optional.webshop.impl.customdata.AbstractOrderPositionPriceDirective
ch.tocco.nice2.optional.webshop.impl.customdata.GetOrderPositionTotalDirective
- All Implemented Interfaces:
Nice2TemplateDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.webshop.impl.customdata.AbstractOrderPositionPriceDirective
commandExecutor, getPriceTask
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionGetOrderPositionTotalDirective
(CommandExecutor commandExecutor, L10N l10N, CurrentArticlePriceService currentArticlePriceService, VatCalculationService vatCalculationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional
<BigDecimal> getAmount
(Entity orderPosition, GetPriceParams.PriceReturnType priceReturnType) Methods inherited from class ch.tocco.nice2.optional.webshop.impl.customdata.AbstractOrderPositionPriceDirective
execute
-
Constructor Details
-
GetOrderPositionTotalDirective
public GetOrderPositionTotalDirective(CommandExecutor commandExecutor, L10N l10N, CurrentArticlePriceService currentArticlePriceService, VatCalculationService vatCalculationService)
-
-
Method Details
-
getAmount
protected Optional<BigDecimal> getAmount(Entity orderPosition, GetPriceParams.PriceReturnType priceReturnType) - Specified by:
getAmount
in classAbstractOrderPositionPriceDirective
-