|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.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.X_M_Storage |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MStorage(Ctx ctx,
int ignored,
String trxName)
Persistency Constructor |
|
MStorage(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
static boolean |
add(Ctx 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,
BigDecimal diffQtyDedicated,
BigDecimal diffQtyExpected,
BigDecimal diffQtyAllocated,
String trxName)
Update Storage Info add. |
static boolean |
add(Ctx 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. |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
void |
changeQtyOnHand(BigDecimal qty,
boolean add)
Change Qty OnHand |
static MStorage |
get(Ctx ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Storage Info |
static MStorage[] |
getAll(Ctx ctx,
int M_Product_ID,
int M_Locator_ID,
String trxName)
Get all Storages for Product |
static MStorage[] |
getAllWithASI(Ctx ctx,
int M_Product_ID,
int M_Locator_ID,
boolean FiFo,
String trxName)
Get all Storages for Product with ASI |
static MStorage |
getCreate(Ctx ctx,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Create or Get Storage Info |
MInOutLine |
getM_InOutLineOf()
|
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(Ctx ctx,
int M_Product_ID,
String trxName)
Get Storage Info for Product across warehouses |
BigDecimal |
getQtyAllocated(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Allocated Qty. |
static BigDecimal |
getQtyAvailable(int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Available Qty. |
BigDecimal |
getQtyDedicated(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Dedicated Qty in a given locator. |
BigDecimal |
getQtyOnHand(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
Get Onhand Qty in a given locator. |
static MStorage[] |
getWarehouse(Ctx 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, getKeyNamePair, getM_AttributeSetInstance_ID, getM_Locator_ID, getM_Product_ID, getQtyAllocated, getQtyDedicated, getQtyExpected, getQtyOnHand, getQtyOrdered, getQtyReserved, initPO, setDateLastInventory, setM_AttributeSetInstance_ID, setM_Locator_ID, setM_Product_ID, setQtyAllocated, setQtyDedicated, setQtyExpected, setQtyOnHand, setQtyOrdered, setQtyReserved |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MStorage(Ctx ctx,
int ignored,
String trxName)
ctx - contextignored - ignoredtrxName - transaction
public MStorage(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MStorage get(Ctx 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(Ctx 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(Ctx ctx,
int M_Product_ID,
int M_Locator_ID,
String trxName)
ctx - contextM_Product_ID - productM_Locator_ID - locatortrxName - transaction
public static MStorage[] getOfProduct(Ctx ctx,
int M_Product_ID,
String trxName)
ctx - contextM_Product_ID - producttrxName - transaction
public MInOutLine getM_InOutLineOf()
public static MStorage[] getWarehouse(Ctx 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(Ctx 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(Ctx 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 boolean add(Ctx 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,
BigDecimal diffQtyDedicated,
BigDecimal diffQtyExpected,
BigDecimal diffQtyAllocated,
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)
M_Warehouse_ID - whM_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public BigDecimal getQtyOnHand(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
M_Warehouse_ID - whM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public BigDecimal getQtyDedicated(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
M_Warehouse_ID - whM_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public BigDecimal getQtyAllocated(int M_Warehouse_ID,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
String trxName)
M_Warehouse_ID - whM_Product_ID - productM_AttributeSetInstance_ID - masitrxName - transaction
public void changeQtyOnHand(BigDecimal qty,
boolean add)
qty - quantityadd - add if truepublic int getM_Warehouse_ID()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - newsuccess - success
public String toString()
toString in class X_M_Storage
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||