|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_M_Storage
org.compiere.model.MStorage
public class MStorage
Inventory Storage Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_M_Storage |
|---|
accessLevel, COLUMNNAME_DateLastInventory, COLUMNNAME_M_AttributeSetInstance_ID, COLUMNNAME_M_Locator_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_QtyOnHand, COLUMNNAME_QtyOrdered, COLUMNNAME_QtyReserved, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MStorage(Properties ctx,
int ignored,
String trxName)
Persistency Constructor |
|
MStorage(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
static boolean |
add(Properties ctx,
int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int reservationAttributeSetInstance_ID,
BigDecimal diffQtyOnHand,
BigDecimal diffQtyReserved,
BigDecimal diffQtyOrdered,
String trxName)
Update Storage Info add. |
void |
changeQtyOnHand(BigDecimal qty,
boolean add)
Change Qty OnHand |
static MStorage |
get(Properties ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Storage Info |
static MStorage[] |
getAll(Properties ctx,
int M_Product_ID,
int M_Locator_ID,
String trxName)
Get all Storages for Product |
static MStorage[] |
getAllWithASI(Properties ctx,
int M_Product_ID,
int M_Locator_ID,
boolean FiFo,
String trxName)
Get all Storages for Product with ASI and QtyOnHand > 0 |
static MStorage |
getCreate(Properties ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Create or Get Storage Info |
static int |
getM_Locator_ID(int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
BigDecimal Qty,
String trxName)
Get Location with highest Locator Priority and a sufficient OnHand Qty |
int |
getM_Warehouse_ID()
Get M_Warehouse_ID of Locator |
static MStorage[] |
getOfProduct(Properties ctx,
int M_Product_ID,
String trxName)
Get Storage Info for Product across warehouses |
static BigDecimal |
getQtyAvailable(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Warehouse/Locator Available Qty. |
static BigDecimal |
getQtyAvailable(int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Deprecated. Since 331b. Please use getQtyAvailable(int, int, int, int, String). |
static MStorage[] |
getWarehouse(Properties ctx,
int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int M_AttributeSet_ID,
boolean allAttributeInstances,
Timestamp minGuaranteeDate,
boolean FiFo,
String trxName)
Get Storage Info for Warehouse |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_M_Storage |
|---|
get_AccessLevel, getDateLastInventory, getM_AttributeSetInstance_ID, getM_Locator_ID, getM_Product_ID, getM_Product, getQtyOnHand, getQtyOrdered, getQtyReserved, initPO, setDateLastInventory, setM_AttributeSetInstance_ID, setM_Locator_ID, setM_Product_ID, setQtyOnHand, setQtyOrdered, setQtyReserved |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MStorage(Properties ctx,
int ignored,
String trxName)
ctx - contextignored - ignoredtrxName - transaction
public MStorage(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MStorage get(Properties ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
ctx - contextM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - instancetrxName - transaction
public static MStorage[] getAllWithASI(Properties ctx,
int M_Product_ID,
int M_Locator_ID,
boolean FiFo,
String trxName)
ctx - contextM_Product_ID - productM_Locator_ID - locatorFiFo - first in-first-outtrxName - transaction
public static MStorage[] getAll(Properties ctx,
int M_Product_ID,
int M_Locator_ID,
String trxName)
ctx - contextM_Product_ID - productM_Locator_ID - locatortrxName - transaction
public static MStorage[] getOfProduct(Properties ctx,
int M_Product_ID,
String trxName)
ctx - contextM_Product_ID - producttrxName - transaction
public static MStorage[] getWarehouse(Properties ctx,
int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int M_AttributeSet_ID,
boolean allAttributeInstances,
Timestamp minGuaranteeDate,
boolean FiFo,
String trxName)
ctx - contextM_Warehouse_ID - M_Product_ID - productM_AttributeSetInstance_ID - instanceM_AttributeSet_ID - attribute setallAttributeInstances - if true, all attribute set instancesminGuaranteeDate - optional minimum guarantee date if all attribute instancesFiFo - first in-first-outtrxName - transaction
public static MStorage getCreate(Properties ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
ctx - contextM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - instancetrxName - transaction
public static boolean add(Properties ctx,
int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int reservationAttributeSetInstance_ID,
BigDecimal diffQtyOnHand,
BigDecimal diffQtyReserved,
BigDecimal diffQtyOrdered,
String trxName)
ctx - contextM_Warehouse_ID - warehouseM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - AS InstancereservationAttributeSetInstance_ID - reservation AS InstancediffQtyOnHand - add on handdiffQtyReserved - add reserveddiffQtyOrdered - add ordertrxName - transaction
public static int getM_Locator_ID(int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
BigDecimal Qty,
String trxName)
M_Warehouse_ID - warehouseM_Product_ID - productM_AttributeSetInstance_ID - asiQty - qtytrxName - transaction
public static BigDecimal getQtyAvailable(int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
getQtyAvailable(int, int, int, int, String).
M_Warehouse_ID - whM_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public static BigDecimal getQtyAvailable(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
M_Warehouse_ID - wh (if the M_Locator_ID!=0 then M_Warehouse_ID is ignored)M_Locator_ID - locator (if 0, the whole warehouse will be evaluated)M_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public void changeQtyOnHand(BigDecimal qty,
boolean add)
qty - quantityadd - add if truepublic int getM_Warehouse_ID()
public String toString()
toString in class X_M_Storage
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||