|
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_C_InvoiceLine
org.compiere.model.MInvoiceLine
public class MInvoiceLine
Invoice Line Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_C_InvoiceLine |
|---|
A_CAPVSEXP_AD_Reference_ID, A_CAPVSEXP_Capital, A_CAPVSEXP_Expense, 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 |
| Constructor Summary | |
|---|---|
MInvoiceLine(MInvoice invoice)
Parent Constructor |
|
MInvoiceLine(Properties ctx,
int C_InvoiceLine_ID,
String trxName)
Invoice Line Constructor |
|
MInvoiceLine(Properties ctx,
ResultSet rs,
String trxName)
Load 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 |
String |
allocateLandedCosts()
Allocate Landed Costs |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
int |
copyLandedCostFrom(MInvoiceLine otherInvoiceLine)
Copy LandedCost From other InvoiceLine. |
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. |
MLandedCost[] |
getLandedCost(String whereClause)
Get LandedCost of InvoiceLine |
String |
getName()
Get (Product/Charge) Name |
static MInvoiceLine |
getOfInOutLine(MInOutLine sLine)
Get Invoice Line referencing InOut Line |
MInvoice |
getParent()
Get Parent |
int |
getPrecision()
Get Currency Precision |
MProduct |
getProduct()
Get Product |
int |
getUser1_ID()
Get User2_ID |
int |
getUser2_ID()
Get User2_ID |
boolean |
isTaxIncluded()
Is Tax Included in Amount |
void |
setInvoice(MInvoice invoice)
Set Defaults from Order. |
void |
setLineNetAmt()
Calculate Extended Amt. |
void |
setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID)
Set M_AttributeSetInstance_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 |
setName(String tempName)
Set Temporary (cached) Name |
void |
setOrderLine(MOrderLine oLine)
Set values from Order Line. |
void |
setPrice()
Set Price for Product and PriceList. |
void |
setPrice(BigDecimal PriceActual)
Set Price Entered/Actual. |
void |
setPrice(int M_PriceList_ID,
int C_BPartner_ID)
Set Price for Product and PriceList |
void |
setPriceActual(BigDecimal PriceActual)
Set Price Actual. |
void |
setProduct(MProduct product)
Set Product |
void |
setQty(BigDecimal Qty)
Set Qty Invoiced |
void |
setQty(int Qty)
Set Qty Invoiced/Entered. |
void |
setQtyEntered(BigDecimal QtyEntered)
Set Qty Entered - enforce entered UOM |
void |
setQtyInvoiced(BigDecimal QtyInvoiced)
Set Qty Invoiced - enforce Product UOM |
void |
setRMALine(MRMALine rmaLine)
|
void |
setShipLine(MInOutLine sLine)
Set values from Shipment Line. |
boolean |
setTax()
Set Tax - requires Warehouse |
void |
setTaxAmt()
Calculare Tax Amt. |
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 MInvoiceLine(Properties ctx,
int C_InvoiceLine_ID,
String trxName)
ctx - contextC_InvoiceLine_ID - invoice line or 0trxName - transaction namepublic MInvoiceLine(MInvoice invoice)
invoice - parent
public MInvoiceLine(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result set recordtrxName - transaction| Method Detail |
|---|
public static MInvoiceLine getOfInOutLine(MInOutLine sLine)
sLine - shipment line
public void setInvoice(MInvoice invoice)
invoice - invoicepublic MInvoice getParent()
public void setOrderLine(MOrderLine oLine)
oLine - linepublic void setShipLine(MInOutLine sLine)
sLine - ship linepublic void addDescription(String description)
description - textpublic void setM_AttributeSetInstance_ID(int M_AttributeSetInstance_ID)
setM_AttributeSetInstance_ID in interface I_C_InvoiceLinesetM_AttributeSetInstance_ID in class X_C_InvoiceLineM_AttributeSetInstance_ID - idpublic void setPrice()
public void setPrice(int M_PriceList_ID,
int C_BPartner_ID)
M_PriceList_ID - price listC_BPartner_ID - business partnerpublic void setPrice(BigDecimal PriceActual)
PriceActual - pricepublic void setPriceActual(BigDecimal PriceActual)
setPriceActual in interface I_C_InvoiceLinesetPriceActual in class X_C_InvoiceLinePriceActual - actual pricepublic boolean setTax()
public void setTaxAmt()
public void setLineNetAmt()
public void setQty(int Qty)
Qty - Invoiced/Orderedpublic void setQty(BigDecimal Qty)
Qty - Invoiced/Enteredpublic void setQtyEntered(BigDecimal QtyEntered)
setQtyEntered in interface I_C_InvoiceLinesetQtyEntered in class X_C_InvoiceLineQtyEntered - public void setQtyInvoiced(BigDecimal QtyInvoiced)
setQtyInvoiced in interface I_C_InvoiceLinesetQtyInvoiced in class X_C_InvoiceLineQtyInvoiced - public void setProduct(MProduct product)
product - product
public void setM_Product_ID(int M_Product_ID,
boolean setUOM)
M_Product_ID - productsetUOM - set UOM from product
public void setM_Product_ID(int M_Product_ID,
int C_UOM_ID)
M_Product_ID - productC_UOM_ID - uompublic MProduct getProduct()
public int getC_Project_ID()
getC_Project_ID in interface I_C_InvoiceLinegetC_Project_ID in class X_C_InvoiceLinepublic int getC_Activity_ID()
getC_Activity_ID in interface I_C_InvoiceLinegetC_Activity_ID in class X_C_InvoiceLinepublic int getC_Campaign_ID()
getC_Campaign_ID in interface I_C_InvoiceLinegetC_Campaign_ID in class X_C_InvoiceLinepublic int getUser1_ID()
getUser1_ID in interface I_C_InvoiceLinegetUser1_ID in class X_C_InvoiceLinepublic int getUser2_ID()
getUser2_ID in interface I_C_InvoiceLinegetUser2_ID in class X_C_InvoiceLinepublic int getAD_OrgTrx_ID()
getAD_OrgTrx_ID in interface I_C_InvoiceLinegetAD_OrgTrx_ID in class X_C_InvoiceLinepublic String toString()
toString in class X_C_InvoiceLinepublic String getName()
public void setName(String tempName)
tempName - Cached Namepublic String getDescriptionText()
public int getPrecision()
public boolean isTaxIncluded()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord -
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
protected boolean afterDelete(boolean success)
afterDelete in class POsuccess - success
public String allocateLandedCosts()
public MLandedCost[] getLandedCost(String whereClause)
whereClause - starting with AND
public int copyLandedCostFrom(MInvoiceLine otherInvoiceLine)
otherInvoiceLine - invoiceline
public void setRMALine(MRMALine rmaLine)
rmaline -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||