Class GetOrderPositionArticlePriceDirective
java.lang.Object
ch.tocco.nice2.optional.webshop.impl.customdata.AbstractOrderPositionPriceDirective
ch.tocco.nice2.optional.webshop.impl.customdata.GetOrderPositionArticlePriceDirective
- 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
ConstructorDescriptionGetOrderPositionArticlePriceDirective
(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
-
GetOrderPositionArticlePriceDirective
public GetOrderPositionArticlePriceDirective(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
-