Interface ExportFormPriceStrategy
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultExportFormPriceStrategy
Strategy used for obtaining the product prices visible on the Export Form
-
Method Summary
Modifier and TypeMethodDescriptioncalculateProductPrice(ConsignmentEntryModel consignmentEntry) Calculates single product price for use in Export Form.calculateTotalPrice(BigDecimal productPrice, ConsignmentEntryModel consignmentEntry) Calculates total price of product for use in Export Form based on precalculated item price.
-
Method Details
-
calculateProductPrice
Calculates single product price for use in Export Form. Should not return null- Parameters:
consignmentEntry-ConsignmentEntryModelto calculate product price for- Returns:
- product price calculated based on consignment entry
-
calculateTotalPrice
Calculates total price of product for use in Export Form based on precalculated item price. Should not return null.- Parameters:
productPrice- price of single product itemconsignmentEntry-ConsignmentEntryModelto calculate total for, based on precalculated productPrice- Returns:
- total price calculated based on product price
-