Class MWarehousePrice

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

public class MWarehousePrice extends X_RV_WarehousePrice
Product Warehouse Availability and Price Model. The Ownership (Client, Org) is determined by the Warehouse Active is determined if the product is discontinued (the product/price/warehouse need to be active) Created.. is determined by the price list version
Version:
$Id: MWarehousePrice.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MWarehousePrice

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

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

    • find

      public static MWarehousePrice[] find(Properties ctx, int M_PriceList_Version_ID, int M_Warehouse_ID, String Value, String Name, String UPC, String SKU, String trxName)
      Find Products in Warehouse with Price
      Parameters:
      ctx - context
      M_PriceList_Version_ID - mandatory price list
      M_Warehouse_ID - mandatory warehouse
      Value - optional value
      Name - optional name
      UPC - optional full match upc
      SKU - optional full match ski
      trxName - transaction
      Returns:
      array of product prices and warehouse availability
    • find

      public static MWarehousePrice[] find(MBPartner bPartner, boolean IsSOTrx, Timestamp valid, int M_Warehouse_ID, String Value, String Name, String UPC, String SKU, String trxName)
      Find Products in Warehouse with Price for customer
      Parameters:
      bPartner - business partner
      IsSOTrx - if true SO
      valid - the date the price must be valid
      M_Warehouse_ID - mandatory warehouse
      Value - optional value
      Name - optional name
      UPC - optional upc
      SKU - optional ski
      trxName - transaction
      Returns:
      array of product prices and warehouse availability or null
    • get

      public static MWarehousePrice get(MProduct product, int M_PriceList_Version_ID, int M_Warehouse_ID, String trxName)
      Get MWarehouse Price
      Parameters:
      product - product
      M_PriceList_Version_ID - plv
      M_Warehouse_ID - wh
      trxName - transaction
      Returns:
      warehouse price
    • isAvailable

      public boolean isAvailable()
      Is Product Available
      Returns:
      true if available qty > 0