Class MPriceListVersion

    • Constructor Detail

      • MPriceListVersion

        public MPriceListVersion​(Properties ctx,
                                 int M_PriceList_Version_ID,
                                 String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_PriceList_Version_ID - id
        trxName - transaction
      • MPriceListVersion

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

        public MPriceListVersion​(MPriceList pl)
        Parent Constructor
        Parameters:
        pl - parent
      • MPriceListVersion

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

      • getPriceList

        public MPriceList getPriceList()
        Get Parent PriceList
        Returns:
        price List
      • getProductPrice

        public MProductPrice[] getProductPrice​(boolean refresh)
        Get Product Price
        Parameters:
        refresh - true if refresh
        Returns:
        product price
      • getProductPrice

        public MProductPrice[] getProductPrice​(String whereClause)
        Get Product Price
        Parameters:
        whereClause - optional where clause
        Returns:
        product price
      • setName

        public void setName()
        Set Name to Valid From Date. If valid from not set, use today
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true