Class MProductPrice

    • Constructor Detail

      • MProductPrice

        public MProductPrice​(Properties ctx,
                             int M_ProductPrice_ID,
                             String trxName)
        Persistency Constructor
        Parameters:
        ctx - context
        M_ProductPrice_ID - key
        trxName - transaction
      • MProductPrice

        public MProductPrice​(Properties ctx,
                             ResultSet rs,
                             String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MProductPrice

        public MProductPrice​(Properties ctx,
                             int M_PriceList_Version_ID,
                             int M_Product_ID,
                             String trxName)
        New Constructor
        Parameters:
        ctx - context
        M_PriceList_Version_ID - Price List Version
        M_Product_ID - product
        trxName - transaction
      • MProductPrice

        public MProductPrice​(Properties ctx,
                             int M_PriceList_Version_ID,
                             int M_Product_ID,
                             BigDecimal PriceList,
                             BigDecimal PriceStd,
                             BigDecimal PriceLimit,
                             String trxName)
        New Constructor
        Parameters:
        ctx - context
        M_PriceList_Version_ID - Price List Version
        M_Product_ID - product
        PriceList - list price
        PriceStd - standard price
        PriceLimit - limit price
        trxName - transaction
      • MProductPrice

        public MProductPrice​(MPriceListVersion plv,
                             int M_Product_ID,
                             BigDecimal PriceList,
                             BigDecimal PriceStd,
                             BigDecimal PriceLimit)
        Parent Constructor
        Parameters:
        plv - price list version
        M_Product_ID - product
        PriceList - list price
        PriceStd - standard price
        PriceLimit - limit price
      • MProductPrice

        public MProductPrice​(MProductPrice copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MProductPrice get​(Properties ctx,
                                        int M_PriceList_Version_ID,
                                        int M_Product_ID,
                                        String trxName)
        Get Product Price
        Parameters:
        ctx - ctx
        M_PriceList_Version_ID - id
        M_Product_ID - id
        trxName - trx
        Returns:
        product price or null
      • setPrices

        public void setPrices​(BigDecimal PriceList,
                              BigDecimal PriceStd,
                              BigDecimal PriceLimit)
        Set Prices
        Parameters:
        PriceList - list price
        PriceStd - standard price
        PriceLimit - limit price