Class MPriceList

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_PriceList, I_Persistent, Evaluatee, ImmutablePOSupport

public class MPriceList extends X_M_PriceList implements ImmutablePOSupport
Price List Model
Version:
$Id: MPriceList.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • BF [ 2073484 ] MPriceList.getDefault is not working correctly
  • See Also:
    • Constructor Details

      • MPriceList

        public MPriceList(Properties ctx, String M_PriceList_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        M_PriceList_UU - UUID key
        trxName - Transaction
      • 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)
        Copy constructor
        Parameters:
        copy -
      • MPriceList

        public MPriceList(Properties ctx, MPriceList copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MPriceList

        public MPriceList(Properties ctx, MPriceList copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • 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 from price list
        Parameters:
        ctx - context
        M_PriceList_ID - price list
        Returns:
        precision
      • getPricePrecision

        public static int getPricePrecision(Properties ctx, int M_PriceList_ID)
        Get Price Precision from price list
        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:
        MPriceListVersion
      • getStandardPrecision

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

        public MPriceList markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO