Class MPriceList

    • Constructor Detail

      • MPriceList

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

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

        public MPriceList​(X_I_PriceList impPL)
        Import Constructor
        Parameters:
        impPL - import
      • MPriceList

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

      • get

        public static MPriceList get​(int M_PriceList_ID)
        Get Price List (cached) (immutable)
        Parameters:
        M_PriceList_ID - id
        Returns:
        PriceList
      • get

        public static MPriceList get​(int M_PriceList_ID,
                                     String trxName)
        Get Price List (cached) (immutable)
        Parameters:
        M_PriceList_ID - id
        trxName - transaction
        Returns:
        PriceList
      • get

        public static MPriceList get​(Properties ctx,
                                     int M_PriceList_ID,
                                     String trxName)
        Get Price List (cached) (immutable)
        Parameters:
        ctx - context
        M_PriceList_ID - id
        trxName - transaction
        Returns:
        PriceList
      • getCopy

        public static MPriceList getCopy​(Properties ctx,
                                         int M_PriceList_ID,
                                         String trxName)
        Get updateable copy of MPriceList from cache
        Parameters:
        ctx -
        M_PriceList_ID -
        trxName -
        Returns:
        MPriceList
      • getDefault

        public static MPriceList getDefault​(Properties ctx,
                                            boolean IsSOPriceList)
        Get Default Price List for Client (cached)
        Parameters:
        ctx - context
        IsSOPriceList - SO or PO
        Returns:
        PriceList or null
      • getDefault

        public static MPriceList getDefault​(Properties ctx,
                                            boolean IsSOPriceList,
                                            String ISOCurrency)
        Get Default Price List for Client (cached) with given currency
        Parameters:
        ctx - context
        IsSOPriceList - SO or PO
        ISOCurrency -
        Returns:
        PriceList or null
      • getStandardPrecision

        public static int getStandardPrecision​(Properties ctx,
                                               int M_PriceList_ID)
        Get Standard Currency Precision
        Parameters:
        ctx - context
        M_PriceList_ID - price list
        Returns:
        precision
      • getPricePrecision

        public static int getPricePrecision​(Properties ctx,
                                            int M_PriceList_ID)
        Get Price Precision
        Parameters:
        ctx - context
        M_PriceList_ID - price list
        Returns:
        precision
      • getPriceListVersion

        public MPriceListVersion getPriceListVersion​(Timestamp valid)
        Get Price List Version
        Parameters:
        valid - date where PLV must be valid or today if null
        Returns:
        PLV
      • getStandardPrecision

        public int getStandardPrecision()
        Get Standard Currency Precision
        Returns:
        precision