Interface ExportFormPriceStrategy
-
- All Known Implementing Classes:
DefaultExportFormPriceStrategy
public interface ExportFormPriceStrategyStrategy used for obtaining the product prices visible on the Export Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimalcalculateProductPrice(ConsignmentEntryModel consignmentEntry)Calculates single product price for use in Export Form.java.math.BigDecimalcalculateTotalPrice(java.math.BigDecimal productPrice, ConsignmentEntryModel consignmentEntry)Calculates total price of product for use in Export Form based on precalculated item price.
-
-
-
Method Detail
-
calculateProductPrice
java.math.BigDecimal calculateProductPrice(ConsignmentEntryModel consignmentEntry)
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
java.math.BigDecimal calculateTotalPrice(java.math.BigDecimal productPrice, ConsignmentEntryModel consignmentEntry)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
-
-