Interface IProductPricing

All Known Implementing Classes:
AbstractProductPricing, MProductPricing

public interface IProductPricing
Interface for Product Price Calculations
  • Method Details

    • setInitialValues

      void setInitialValues(int M_Product_ID, int C_BPartner_ID, BigDecimal qty, boolean isSOTrx, String trxName)
      Set the initial values that the old MProductPricing uses for backward compatibility
      Parameters:
      M_Product_ID -
      C_BPartner_ID -
      qty -
      isSOTrx -
      trxName -
    • calculatePrice

      boolean calculatePrice()
      Calculate Price
      Returns:
      true if calculated
    • getDiscount

      BigDecimal getDiscount()
      Calculate Discount Percentage
      Returns:
      Discount
    • getM_Product_ID

      int getM_Product_ID()
    • getM_PriceList_ID

      int getM_PriceList_ID()
    • setM_PriceList_ID

      void setM_PriceList_ID(int M_PriceList_ID)
    • setM_PriceList_Version_ID

      void setM_PriceList_Version_ID(int M_PriceList_Version_ID)
    • setQty

      void setQty(BigDecimal qty)
    • getPriceDate

      Timestamp getPriceDate()
      Get Price Date
      Returns:
      date
    • setPriceDate

      void setPriceDate(Timestamp priceDate)
      Set Price Date
      Parameters:
      priceDate - date
    • getC_UOM_ID

      int getC_UOM_ID()
      Get C_UOM_ID
      Returns:
      uom
    • getPriceList

      BigDecimal getPriceList()
      Get Price List
      Returns:
      list
    • getPriceStd

      BigDecimal getPriceStd()
      Get Price Std
      Returns:
      std
    • getPriceLimit

      BigDecimal getPriceLimit()
      Get Price Limit
      Returns:
      limit
    • getC_Currency_ID

      int getC_Currency_ID()
      Get Price List Currency
      Returns:
      currency
    • isEnforcePriceLimit

      boolean isEnforcePriceLimit()
      Is Price List enforced?
      Returns:
      enforce limit
    • isDiscountSchema

      boolean isDiscountSchema()
      Is a DiscountSchema active?
      Returns:
      active Discount Schema
    • isCalculated

      boolean isCalculated()
      Is the Price Calculated (i.e. found)?
      Returns:
      calculated
    • setOrderLine

      void setOrderLine(I_C_OrderLine orderLine, String trxName)
      Set order line and calculate the parameters from it
      Parameters:
      orderLine -
      trxName -
    • setInvoiceLine

      void setInvoiceLine(I_C_InvoiceLine invoiceLine, String trxName)
      Set invoice line and calculate the parameters from it
      Parameters:
      invoiceLine -
      trxName -
    • setProjectLine

      void setProjectLine(I_C_ProjectLine projectLine, String trxName)
      Set project line and calculate the parameters from it
      Parameters:
      projectLine -
      trxName -
    • setRequisitionLine

      void setRequisitionLine(I_M_RequisitionLine reqLine, String trxName)
      Set requisition line and calculate the parameters from it
      Parameters:
      reqLine -
      trxName -
    • setRMALine

      void setRMALine(I_M_RMALine rmaLine, String trxName)
      Set rma line and calculate the parameters from it
      Parameters:
      rmaLine -
      trxName -