|
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_InventoryLine
org.compiere.model.MInventoryLine
public class MInventoryLine
Physical Inventory Line Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_InventoryLine |
|---|
INVENTORYTYPE_AD_Reference_ID, INVENTORYTYPE_ChargeAccount, INVENTORYTYPE_InventoryDifference, M_PRODUCT_ID_AD_Reference_ID |
| 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 |
| Constructor Summary | |
|---|---|
MInventoryLine(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
BigDecimal QtyBook,
BigDecimal QtyCount)
Detail Constructor. |
|
MInventoryLine(Properties ctx,
int M_InventoryLine_ID,
String trxName)
Default Constructor |
|
MInventoryLine(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MInventoryLine |
get(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID)
Get Inventory Line with parameters |
BigDecimal |
getMovementQty()
Get Movement Qty (absolute value) negative value means outgoing trx positive value means incoming trx |
MInventory |
getParent()
Get Parent |
MProduct |
getProduct()
Get Product |
BigDecimal |
getQtyBook()
Get Qty Book |
BigDecimal |
getQtyCount()
Get Qty Count |
boolean |
isInternalUseInventory()
Is Internal Use Inventory |
boolean |
isSOTrx()
|
protected void |
setParent(MInventory parent)
Get Parent |
void |
setQtyCount(BigDecimal QtyCount)
Set Count Qty - enforce UOM |
void |
setQtyInternalUse(BigDecimal QtyInternalUse)
Set Internal Use Qty - enforce UOM |
String |
toString()
String Representation |
| 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 MInventoryLine(Properties ctx,
int M_InventoryLine_ID,
String trxName)
ctx - contextM_InventoryLine_ID - linetrxName - transaction
public MInventoryLine(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MInventoryLine(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
BigDecimal QtyBook,
BigDecimal QtyCount)
inventory - parentM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - instanceQtyBook - book valueQtyCount - count value| Method Detail |
|---|
public static MInventoryLine get(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID)
inventory - inventoryM_Locator_ID - locatorM_Product_ID - productM_AttributeSetInstance_ID - asi
public BigDecimal getQtyBook()
getQtyBook in interface I_M_InventoryLinegetQtyBook in class X_M_InventoryLinepublic BigDecimal getQtyCount()
getQtyCount in interface I_M_InventoryLinegetQtyCount in class X_M_InventoryLinepublic MProduct getProduct()
public void setQtyCount(BigDecimal QtyCount)
setQtyCount in interface I_M_InventoryLinesetQtyCount in class X_M_InventoryLineQtyCount - qtypublic void setQtyInternalUse(BigDecimal QtyInternalUse)
setQtyInternalUse in interface I_M_InventoryLinesetQtyInternalUse in class X_M_InventoryLineQtyInternalUse - qtypublic void addDescription(String description)
description - textprotected void setParent(MInventory parent)
parent - parentpublic MInventory getParent()
public String toString()
toString in class X_M_InventoryLineprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public boolean isInternalUseInventory()
public BigDecimal getMovementQty()
public boolean isSOTrx()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||