|
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_InventoryLine
org.compiere.model.MInventoryLine
public class MInventoryLine
Physical Inventory Line Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_M_InventoryLine |
|---|
accessLevel, INVENTORYTYPE_AD_Reference_ID, INVENTORYTYPE_ChargeAccount, INVENTORYTYPE_InventoryDifference, M_PRODUCT_ID_AD_Reference_ID, 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 | |
|---|---|
MInventoryLine(Ctx ctx,
int M_InventoryLine_ID,
String trxName)
Default Constructor |
|
MInventoryLine(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MInventoryLine(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
BigDecimal QtyBook,
BigDecimal QtyCount)
Detail 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 |
void |
createMA(boolean updateQtyBooked)
Create Material Allocations for new Instances |
static MInventoryLine |
get(MInventory inventory,
int M_Locator_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID)
Get Inventory Line with parameters |
MInventory |
getParent()
Get Parent |
MProduct |
getProduct()
Get Product |
BigDecimal |
getQtyBook()
Get Qty Book |
BigDecimal |
getQtyCount()
Get Qty Count |
void |
setM_AttributeSetInstance_ID(String oldM_AttributeSetInstance_ID,
String newM_AttributeSetInstance_ID,
int windowNo)
Set Attribute Set Instance - Callout |
void |
setM_Locator_ID(String oldM_Locator_ID,
String newM_Locator_ID,
int windowNo)
Set Locator - Callout |
void |
setM_Product_ID(String oldM_Product_ID,
String newM_Product_ID,
int windowNo)
Set Product - Callout |
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, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MInventoryLine(Ctx ctx,
int M_InventoryLine_ID,
String trxName)
ctx - contextM_InventoryLine_ID - linetrxName - transaction
public MInventoryLine(Ctx 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 class X_M_InventoryLinepublic BigDecimal getQtyCount()
getQtyCount in class X_M_InventoryLinepublic MProduct getProduct()
public void setQtyCount(BigDecimal QtyCount)
setQtyCount in class X_M_InventoryLineQtyCount - qtypublic void setQtyInternalUse(BigDecimal QtyInternalUse)
setQtyInternalUse in class X_M_InventoryLineQtyInternalUse - qtypublic void addDescription(String description)
description - textprotected void setParent(MInventory parent)
parent - parentpublic MInventory getParent()
@UICallout
public void setM_Product_ID(String oldM_Product_ID,
String newM_Product_ID,
int windowNo)
throws Exception
oldM_Product_ID - old valuenewM_Product_ID - new valuewindowNo - window
Exception
@UICallout
public void setM_AttributeSetInstance_ID(String oldM_AttributeSetInstance_ID,
String newM_AttributeSetInstance_ID,
int windowNo)
throws Exception
oldM_AttributeSetInstance_ID - old valuenewM_AttributeSetInstance_ID - new valuewindowNo - window
Exception
@UICallout
public void setM_Locator_ID(String oldM_Locator_ID,
String newM_Locator_ID,
int windowNo)
throws Exception
oldM_Locator_ID - old valuenewM_Locator_ID - new valuewindowNo - window
Exceptionpublic 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 void createMA(boolean updateQtyBooked)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||