Adempiere 3.5.2a

org.compiere.model
Class MInOutLine

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_M_InOutLine
          extended by org.compiere.model.MInOutLine
All Implemented Interfaces:
Serializable, Comparator, I_M_InOutLine, I_Persistent, Evaluatee

public class MInOutLine
extends X_M_InOutLine

InOut Line

Version:
$Id: MInOutLine.java,v 1.5 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.X_M_InOutLine
AD_ORGTRX_ID_AD_Reference_ID, USER1_ID_AD_Reference_ID, USER2_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
 
Fields inherited from interface org.compiere.model.I_M_InOutLine
accessLevel, COLUMNNAME_AD_OrgTrx_ID, COLUMNNAME_C_Activity_ID, COLUMNNAME_C_Campaign_ID, COLUMNNAME_C_Charge_ID, COLUMNNAME_C_OrderLine_ID, COLUMNNAME_C_Project_ID, COLUMNNAME_C_ProjectPhase_ID, COLUMNNAME_C_ProjectTask_ID, COLUMNNAME_C_UOM_ID, COLUMNNAME_ConfirmedQty, COLUMNNAME_Description, COLUMNNAME_IsDescription, COLUMNNAME_IsInvoiced, COLUMNNAME_Line, COLUMNNAME_M_AttributeSetInstance_ID, COLUMNNAME_M_InOut_ID, COLUMNNAME_M_InOutLine_ID, COLUMNNAME_M_Locator_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_M_RMALine_ID, COLUMNNAME_MovementQty, COLUMNNAME_PickedQty, COLUMNNAME_Processed, COLUMNNAME_QtyEntered, COLUMNNAME_Ref_InOutLine_ID, COLUMNNAME_ScrappedQty, COLUMNNAME_TargetQty, COLUMNNAME_User1_ID, COLUMNNAME_User2_ID, Model, Table_ID, Table_Name
 
Constructor Summary
MInOutLine(MInOut inout)
          Parent Constructor
MInOutLine(Properties ctx, int M_InOutLine_ID, String trxName)
          Standard Constructor
MInOutLine(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
 void addDescription(String description)
          Add to Description
protected  boolean beforeDelete()
          Before Delete
protected  boolean beforeSave(boolean newRecord)
          Before Save
static MInOutLine[] get(Properties ctx, int C_OrderLine_ID, String trxName)
          Get Ship lines Of Order Line
 int getAD_OrgTrx_ID()
          Get AD_OrgTrx_ID
 BigDecimal getBase(String CostDistribution)
          Get Base value for Cost Distribution
 int getC_Activity_ID()
          Get C_Activity_ID
 int getC_Campaign_ID()
          Get C_Campaign_ID
 int getC_Project_ID()
          Get C_Project_ID
 int getM_Warehouse_ID()
          Get Warehouse
static MInOutLine[] getOfOrderLine(Properties ctx, int C_OrderLine_ID, String where, String trxName)
          Get Ship lines Of Order Line
 MInOut getParent()
          Get Parent
 MProduct getProduct()
          Get Product
 int getUser1_ID()
          Get User2_ID
 int getUser2_ID()
          Get User2_ID
 void setInvoiceLine(MInvoiceLine iLine, int M_Locator_ID, BigDecimal Qty)
          Set Invoice Line.
 void setM_Locator_ID(BigDecimal Qty)
          Set (default) Locator based on qty.
 void setM_Locator_ID(int M_Locator_ID)
          Set M_Locator_ID
 void setM_Product_ID(int M_Product_ID, boolean setUOM)
          Set M_Product_ID
 void setM_Product_ID(int M_Product_ID, int C_UOM_ID)
          Set Product and UOM
 void setM_Warehouse_ID(int warehouse_ID)
          Set Warehouse
 void setMovementQty(BigDecimal MovementQty)
          Set Movement Qty - enforce Product UOM
 void setOrderLine(MOrderLine oLine, int M_Locator_ID, BigDecimal Qty)
          Set Order Line.
 void setProduct(MProduct product)
          Set Product
 void setQty(BigDecimal Qty)
          Set Movement/Movement Qty
 void setQtyEntered(BigDecimal QtyEntered)
          Set Qty Entered - enforce entered UOM
 String toString()
          String Representation
 
Methods inherited from class org.compiere.model.X_M_InOutLine
get_AccessLevel, getC_Activity, getC_Campaign, getC_Charge_ID, getC_Charge, getC_OrderLine_ID, getC_OrderLine, getC_Project, getC_ProjectPhase_ID, getC_ProjectPhase, getC_ProjectTask_ID, getC_ProjectTask, getC_UOM_ID, getC_UOM, getConfirmedQty, getDescription, getKeyNamePair, getLine, getM_AttributeSetInstance_ID, getM_InOut_ID, getM_InOut, getM_InOutLine_ID, getM_Locator_ID, getM_Product_ID, getM_Product, getM_RMALine_ID, getM_RMALine, getMovementQty, getPickedQty, getQtyEntered, getRef_InOutLine_ID, getScrappedQty, getTargetQty, initPO, isDescription, isInvoiced, isProcessed, setAD_OrgTrx_ID, setC_Activity_ID, setC_Campaign_ID, setC_Charge_ID, setC_OrderLine_ID, setC_Project_ID, setC_ProjectPhase_ID, setC_ProjectTask_ID, setC_UOM_ID, setConfirmedQty, setDescription, setIsDescription, setIsInvoiced, setLine, setM_AttributeSetInstance_ID, setM_InOut_ID, setM_InOutLine_ID, setM_Product_ID, setM_RMALine_ID, setPickedQty, setProcessed, setRef_InOutLine_ID, setScrappedQty, setTargetQty, setUser1_ID, setUser2_ID
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
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

MInOutLine

public MInOutLine(Properties ctx,
                  int M_InOutLine_ID,
                  String trxName)
Standard Constructor

Parameters:
ctx - context
M_InOutLine_ID - id
trxName - trx name

MInOutLine

public MInOutLine(Properties ctx,
                  ResultSet rs,
                  String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set record
trxName - transaction

MInOutLine

public MInOutLine(MInOut inout)
Parent Constructor

Parameters:
inout - parent
Method Detail

getOfOrderLine

public static MInOutLine[] getOfOrderLine(Properties ctx,
                                          int C_OrderLine_ID,
                                          String where,
                                          String trxName)
Get Ship lines Of Order Line

Parameters:
ctx - context
C_OrderLine_ID - line
where - optional addition where clause
trxName - transaction
Returns:
array of receipt lines

get

public static MInOutLine[] get(Properties ctx,
                               int C_OrderLine_ID,
                               String trxName)
Get Ship lines Of Order Line

Parameters:
ctx - context
C_OrderLine_ID - line
trxName - transaction
Returns:
array of receipt lines2

getParent

public MInOut getParent()
Get Parent

Returns:
parent

setOrderLine

public void setOrderLine(MOrderLine oLine,
                         int M_Locator_ID,
                         BigDecimal Qty)
Set Order Line. Does not set Quantity!

Parameters:
oLine - order line
M_Locator_ID - locator
Qty - used only to find suitable locator

setInvoiceLine

public void setInvoiceLine(MInvoiceLine iLine,
                           int M_Locator_ID,
                           BigDecimal Qty)
Set Invoice Line. Does not set Quantity!

Parameters:
iLine - invoice line
M_Locator_ID - locator
Qty - qty only fo find suitable locator

getM_Warehouse_ID

public int getM_Warehouse_ID()
Get Warehouse

Returns:
Returns the m_Warehouse_ID.

setM_Warehouse_ID

public void setM_Warehouse_ID(int warehouse_ID)
Set Warehouse

Parameters:
warehouse_ID - The m_Warehouse_ID to set.

setM_Locator_ID

public void setM_Locator_ID(int M_Locator_ID)
Set M_Locator_ID

Specified by:
setM_Locator_ID in interface I_M_InOutLine
Overrides:
setM_Locator_ID in class X_M_InOutLine
Parameters:
M_Locator_ID - id

setM_Locator_ID

public void setM_Locator_ID(BigDecimal Qty)
Set (default) Locator based on qty.

Parameters:
Qty - quantity Assumes Warehouse is set

setQty

public void setQty(BigDecimal Qty)
Set Movement/Movement Qty

Parameters:
Qty - Entered/Movement Qty

setQtyEntered

public void setQtyEntered(BigDecimal QtyEntered)
Set Qty Entered - enforce entered UOM

Specified by:
setQtyEntered in interface I_M_InOutLine
Overrides:
setQtyEntered in class X_M_InOutLine
Parameters:
QtyEntered -

setMovementQty

public void setMovementQty(BigDecimal MovementQty)
Set Movement Qty - enforce Product UOM

Specified by:
setMovementQty in interface I_M_InOutLine
Overrides:
setMovementQty in class X_M_InOutLine
Parameters:
MovementQty -

getProduct

public MProduct getProduct()
Get Product

Returns:
product or null

setProduct

public void setProduct(MProduct product)
Set Product

Parameters:
product - product

setM_Product_ID

public void setM_Product_ID(int M_Product_ID,
                            boolean setUOM)
Set M_Product_ID

Parameters:
M_Product_ID - product
setUOM - also set UOM from product

setM_Product_ID

public void setM_Product_ID(int M_Product_ID,
                            int C_UOM_ID)
Set Product and UOM

Parameters:
M_Product_ID - product
C_UOM_ID - uom

addDescription

public void addDescription(String description)
Add to Description

Parameters:
description - text

getC_Project_ID

public int getC_Project_ID()
Get C_Project_ID

Specified by:
getC_Project_ID in interface I_M_InOutLine
Overrides:
getC_Project_ID in class X_M_InOutLine
Returns:
project

getC_Activity_ID

public int getC_Activity_ID()
Get C_Activity_ID

Specified by:
getC_Activity_ID in interface I_M_InOutLine
Overrides:
getC_Activity_ID in class X_M_InOutLine
Returns:
Activity

getC_Campaign_ID

public int getC_Campaign_ID()
Get C_Campaign_ID

Specified by:
getC_Campaign_ID in interface I_M_InOutLine
Overrides:
getC_Campaign_ID in class X_M_InOutLine
Returns:
Campaign

getUser1_ID

public int getUser1_ID()
Get User2_ID

Specified by:
getUser1_ID in interface I_M_InOutLine
Overrides:
getUser1_ID in class X_M_InOutLine
Returns:
User2

getUser2_ID

public int getUser2_ID()
Get User2_ID

Specified by:
getUser2_ID in interface I_M_InOutLine
Overrides:
getUser2_ID in class X_M_InOutLine
Returns:
User2

getAD_OrgTrx_ID

public int getAD_OrgTrx_ID()
Get AD_OrgTrx_ID

Specified by:
getAD_OrgTrx_ID in interface I_M_InOutLine
Overrides:
getAD_OrgTrx_ID in class X_M_InOutLine
Returns:
trx org

beforeSave

protected boolean beforeSave(boolean newRecord)
Before Save

Overrides:
beforeSave in class PO
Parameters:
newRecord - new
Returns:
save

beforeDelete

protected boolean beforeDelete()
Before Delete

Overrides:
beforeDelete in class PO
Returns:
true if drafted

toString

public String toString()
String Representation

Overrides:
toString in class X_M_InOutLine
Returns:
info

getBase

public BigDecimal getBase(String CostDistribution)
Get Base value for Cost Distribution

Parameters:
CostDistribution - cost Distribution
Returns:
base number

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.