Class MProductPrice

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

public class MProductPrice extends X_M_ProductPrice implements ImmutablePOSupport
Product Price
Version:
$Id: MProductPrice.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MProductPrice

      public MProductPrice(Properties ctx, String M_ProductPrice_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_ProductPrice_UU - UUID key
      trxName - Transaction
    • MProductPrice

      public MProductPrice(Properties ctx, int M_ProductPrice_ID, String trxName)
      Parameters:
      ctx - context
      M_ProductPrice_ID - id
      trxName - transaction name
    • 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 record 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 record 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)
      Copy constructor
      Parameters:
      copy -
    • MProductPrice

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

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

    • 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 - price list version id
      M_Product_ID - product id
      trxName - transaction name
      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
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_M_ProductPrice
      Returns:
      info
    • markImmutable

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