|
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_C_OrderLine
org.compiere.model.MOrderLine
public class MOrderLine
Order Line Model.
MOrderLine ol = new MOrderLine(m_order);
ol.setM_Product_ID(wbl.getM_Product_ID());
ol.setQtyOrdered(wbl.getQuantity());
ol.setPrice();
ol.setPriceActual(wbl.getPrice());
ol.setTax();
ol.save();
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_C_OrderLine |
|---|
accessLevel, AD_ORGTRX_ID_AD_Reference_ID, M_WAREHOUSE_ID_AD_Reference_ID, Model, ORIG_INOUTLINE_ID_AD_Reference_ID, ORIG_ORDERLINE_ID_AD_Reference_ID, REF_ORDERLINE_ID_AD_Reference_ID, Table_ID, Table_Name, updatedMS, USER1_ID_AD_Reference_ID, USER2_ID_AD_Reference_ID |
| 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 | |
|---|---|
MOrderLine(Ctx ctx,
int C_OrderLine_ID,
String trxName)
Default Constructor |
|
MOrderLine(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MOrderLine(MOrder order)
Parent Constructor. |
|
| Method Summary | |
|---|---|
void |
addDescription(String description)
Add to Description |
protected boolean |
afterDelete(boolean success)
After Delete |
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeDelete()
Before Delete |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
boolean |
canChangeWarehouse()
Can Change Warehouse |
void |
checkPrice()
|
int |
getAD_OrgTrx_ID()
Get AD_OrgTrx_ID |
int |
getC_Activity_ID()
Get C_Activity_ID |
int |
getC_Campaign_ID()
Get C_Campaign_ID |
int |
getC_Project_ID()
Get C_Project_ID |
String |
getDescriptionText()
Get Description Text. |
String |
getName()
Get Name |
static BigDecimal |
getNotReserved(Ctx ctx,
int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int excludeC_OrderLine_ID)
Get Order Unreserved Qty |
MOrder |
getParent()
Get Parent |
int |
getPrecision()
Get Currency Precision from Currency |
MProduct |
getProduct()
Get Product |
int |
getUser1_ID()
Get User2_ID |
int |
getUser2_ID()
Get User2_ID |
boolean |
isTaxIncluded()
Is Tax Included in Amount |
void |
setC_BPartner_Location_ID(String oldC_BPartner_Location_ID,
String newC_BPartner_Location_ID,
int windowNo)
Set Partner Location - Callout |
void |
setC_Charge_ID(int C_Charge_ID)
Set C_Charge_ID |
void |
setC_Charge_ID(String oldC_Charge_ID,
String newC_Charge_ID,
int windowNo)
Set Charge - Callout |
void |
setC_UOM_ID(String oldC_UOM_ID,
String newC_UOM_ID,
int windowNo)
Set UOM - Callout |
void |
setDiscount()
Set Discount |
void |
setDiscount(String oldDiscount,
String newDiscount,
int windowNo)
Set Discount - Callout |
void |
setHeaderInfo(MOrder order)
Set Header Info |
void |
setLineNetAmt()
Calculate Extended Amt. |
void |
setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID)
Set M_AttributeSetInstance_ID |
void |
setM_AttributeSetInstance_ID(String oldM_AttributeSetInstance_ID,
String newM_AttributeSetInstance_ID,
int windowNo)
Set AttributeSet Instance - Callout |
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_Product_ID(String oldM_Product_ID,
String newM_Product_ID,
int windowNo)
Set Product - Callout |
void |
setM_Warehouse_ID(int M_Warehouse_ID)
Set Warehouse |
void |
setOrder(MOrder order)
Set Defaults from Order. |
void |
setOrig_InOutLine_ID(String oldOrig_InOutLine_ID,
String newOrig_InOutLine_ID,
int windowNo)
Set Original Shipment Line - Callout |
void |
setOrig_OrderLine_ID(String oldOrig_OrderLine_ID,
String newOrig_OrderLine_ID,
int windowNo)
Set Original Order Line - Callout |
void |
setOrigInOutLine(MInOutLine Orig_InOutLine)
Set Original Shipment Line for RMA SOTrx should be set. |
void |
setOrigOrderLine(MOrderLine origOrderLine)
Set Original OrderLine for RMA SOTrx should be set. |
void |
setPrice()
Set Price for Product and PriceList. |
void |
setPrice(BigDecimal PriceActual)
Set Price Entered/Actual. |
void |
setPrice(int M_PriceList_ID)
Set Price for Product and PriceList |
void |
setPriceActual(String oldPriceActual,
String newPriceActual,
int windowNo)
Set PriceActual - Callout |
void |
setPriceEntered(String oldPriceEntered,
String newPriceEntered,
int windowNo)
Set PriceEntered - Callout |
void |
setPriceList(String oldPriceList,
String newPriceList,
int windowNo)
Set PriceList - Callout |
void |
setProduct(MProduct product)
Set Product |
void |
setQty(BigDecimal Qty)
Set Qty Entered/Ordered. |
void |
setQtyEntered(BigDecimal QtyEntered)
Set Qty Entered - enforce entered UOM |
void |
setQtyEntered(String oldQtyEntered,
String newQtyEntered,
int windowNo)
Set QtyEntered - Callout |
void |
setQtyOrdered(BigDecimal QtyOrdered)
Set Qty Ordered - enforce Product UOM |
void |
setQtyOrdered(String oldQtyOrdered,
String newQtyOrdered,
int windowNo)
Set QtyOrdered - Callout |
void |
setS_ResourceAssignment_ID(String oldS_ResourceAssignment_ID,
String newS_ResourceAssignment_ID,
int windowNo)
Set Resource Assignment - Callout |
boolean |
setTax()
Set Tax |
String |
toString()
String Representation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MOrderLine(Ctx ctx,
int C_OrderLine_ID,
String trxName)
ctx - contextC_OrderLine_ID - order line to loadtrxName - trx namepublic MOrderLine(MOrder order)
order - parent order
public MOrderLine(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result set recordtrxName - transaction| Method Detail |
|---|
public static BigDecimal getNotReserved(Ctx ctx,
int M_Warehouse_ID,
int M_Product_ID,
int M_AttributeSetInstance_ID,
int excludeC_OrderLine_ID)
ctx - contextM_Warehouse_ID - whM_Product_ID - productM_AttributeSetInstance_ID - asiexcludeC_OrderLine_ID - exclude C_OrderLine_ID
public void setOrder(MOrder order)
order - orderpublic void setHeaderInfo(MOrder order)
order - orderpublic MOrder getParent()
public void setPrice(BigDecimal PriceActual)
PriceActual - pricepublic void setPrice()
public void setPrice(int M_PriceList_ID)
M_PriceList_ID - price listpublic void checkPrice()
public boolean setTax()
public void setLineNetAmt()
public int getPrecision()
public void setProduct(MProduct product)
product - product
public void setM_Product_ID(int M_Product_ID,
boolean setUOM)
M_Product_ID - productsetUOM - set also UOM
public void setM_Product_ID(int M_Product_ID,
int C_UOM_ID)
M_Product_ID - productC_UOM_ID - uom
@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
Exceptionpublic MProduct getProduct()
public void setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID)
setM_AttributeSetInstance_ID in class X_C_OrderLineM_AttributeSetInstance_ID - idpublic void setM_Warehouse_ID(int M_Warehouse_ID)
setM_Warehouse_ID in class X_C_OrderLineM_Warehouse_ID - warehouse
@UICallout
public void setC_BPartner_Location_ID(String oldC_BPartner_Location_ID,
String newC_BPartner_Location_ID,
int windowNo)
throws Exception
oldC_BPartner_Location_ID - old valuenewC_BPartner_Location_ID - new valuewindowNo - window
Exception
@UICallout
public void setC_UOM_ID(String oldC_UOM_ID,
String newC_UOM_ID,
int windowNo)
throws Exception
oldC_UOM_ID - old valuenewC_UOM_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 setDiscount(String oldDiscount,
String newDiscount,
int windowNo)
throws Exception
oldDiscount - old valuenewDiscount - new valuewindowNo - window
Exception
@UICallout
public void setPriceActual(String oldPriceActual,
String newPriceActual,
int windowNo)
throws Exception
oldPriceActual - old valuenewPriceActual - new valuewindowNo - window
Exception
@UICallout
public void setPriceEntered(String oldPriceEntered,
String newPriceEntered,
int windowNo)
throws Exception
oldPriceEntered - old valuenewPriceEntered - new valuewindowNo - window
Exception
@UICallout
public void setPriceList(String oldPriceList,
String newPriceList,
int windowNo)
throws Exception
oldPriceList - old valuenewPriceList - new valuewindowNo - window
Exception
@UICallout
public void setQtyEntered(String oldQtyEntered,
String newQtyEntered,
int windowNo)
throws Exception
oldQtyEntered - old valuenewQtyEntered - new valuewindowNo - window
Exception
@UICallout
public void setQtyOrdered(String oldQtyOrdered,
String newQtyOrdered,
int windowNo)
throws Exception
oldQtyOrdered - old valuenewQtyOrdered - new valuewindowNo - window
Exception
@UICallout
public void setS_ResourceAssignment_ID(String oldS_ResourceAssignment_ID,
String newS_ResourceAssignment_ID,
int windowNo)
throws Exception
oldS_ResourceAssignment_ID - old valuenewS_ResourceAssignment_ID - new valuewindowNo - window
Exceptionpublic boolean canChangeWarehouse()
public int getC_Project_ID()
getC_Project_ID in class X_C_OrderLinepublic int getC_Activity_ID()
getC_Activity_ID in class X_C_OrderLinepublic int getC_Campaign_ID()
getC_Campaign_ID in class X_C_OrderLinepublic int getUser1_ID()
getUser1_ID in class X_C_OrderLinepublic int getUser2_ID()
getUser2_ID in class X_C_OrderLinepublic int getAD_OrgTrx_ID()
getAD_OrgTrx_ID in class X_C_OrderLinepublic String toString()
toString in class X_C_OrderLinepublic void addDescription(String description)
description - textpublic String getDescriptionText()
public String getName()
public void setC_Charge_ID(int C_Charge_ID)
setC_Charge_ID in class X_C_OrderLineC_Charge_ID - charge
@UICallout
public void setC_Charge_ID(String oldC_Charge_ID,
String newC_Charge_ID,
int windowNo)
throws Exception
oldC_Charge_ID - old valuenewC_Charge_ID - new valuewindowNo - window
Exceptionpublic void setDiscount()
public boolean isTaxIncluded()
public void setQty(BigDecimal Qty)
Qty - QtyOrdered/Enteredpublic void setQtyEntered(BigDecimal QtyEntered)
setQtyEntered in class X_C_OrderLineQtyEntered - public void setQtyOrdered(BigDecimal QtyOrdered)
setQtyOrdered in class X_C_OrderLineQtyOrdered - public void setOrigOrderLine(MOrderLine origOrderLine)
origIOLine - MInOutLine
@UICallout
public void setOrig_OrderLine_ID(String oldOrig_OrderLine_ID,
String newOrig_OrderLine_ID,
int windowNo)
throws Exception
oldOrig_InOutLine_ID - old Orig OrdernewOrig_InOutLine_ID - new Orig OrderwindowNo - window no
Exceptionpublic void setOrigInOutLine(MInOutLine Orig_InOutLine)
origIOLine - MInOutLine
@UICallout
public void setOrig_InOutLine_ID(String oldOrig_InOutLine_ID,
String newOrig_InOutLine_ID,
int windowNo)
throws Exception
oldOrig_InOutLine_ID - old Orig OrdernewOrig_InOutLine_ID - new Orig OrderwindowNo - window no
Exceptionprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord -
protected boolean beforeDelete()
beforeDelete in class PO
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
protected boolean afterDelete(boolean success)
afterDelete in class POsuccess - success
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||