Interface ExportFormPriceStrategy

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultExportFormPriceStrategy

public interface ExportFormPriceStrategy extends Serializable
Strategy used for obtaining the product prices visible on the Export Form
  • Method Details

    • calculateProductPrice

      BigDecimal calculateProductPrice(ConsignmentEntryModel consignmentEntry)
      Calculates single product price for use in Export Form. Should not return null
      Parameters:
      consignmentEntry - ConsignmentEntryModel to calculate product price for
      Returns:
      product price calculated based on consignment entry
    • calculateTotalPrice

      BigDecimal calculateTotalPrice(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 item
      consignmentEntry - ConsignmentEntryModel to calculate total for, based on precalculated productPrice
      Returns:
      total price calculated based on product price