|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.acct.DocLine
public class DocLine
Standard Document Line
| Field Summary | |
|---|---|
protected CLogger |
log
Log |
protected PO |
p_po
Persistent Object |
| Constructor Summary | |
|---|---|
DocLine(PO po,
Doc doc)
Create Document Line |
|
| Method Summary | |
|---|---|
int |
get_ID()
Get Line ID |
MAccount |
getAccount()
Get GL Journal Account |
MAccount |
getAccount(int AcctType,
MAcctSchema as)
Line Account from Product (or Charge). |
int |
getAD_Org_ID()
Get AD_Org_ID |
int |
getAD_OrgTrx_ID()
Get TrxOrg |
BigDecimal |
getAmtAcctCr()
Line Journal Accounted Cr Amount |
BigDecimal |
getAmtAcctDr()
Line Journal Accounted Dr Amount |
BigDecimal |
getAmtSource()
Line Net Amount or Dr-Cr |
BigDecimal |
getAmtSourceCr()
Get (Journal) Line Source Cr Amount |
BigDecimal |
getAmtSourceDr()
Get (Journal) Line Source Dr Amount |
int |
getC_AcctSchema_ID()
Get (Journal) AcctSchema |
int |
getC_Activity_ID()
Get Activity |
int |
getC_BPartner_ID()
Get BPartner |
int |
getC_BPartner_Location_ID()
Get C_BPartner_Location_ID |
int |
getC_Campaign_ID()
Get Campaign |
protected int |
getC_Charge_ID()
Get Charge |
int |
getC_ConversionType_ID()
Get Conversion Type |
int |
getC_Currency_ID()
Get Currency |
int |
getC_LocFrom_ID()
Get C_LocFrom_ID |
int |
getC_LocTo_ID()
Get C_LocTo_ID |
int |
getC_OrderLine_ID()
Get Order Line Reference |
protected int |
getC_Period_ID()
Get Period |
int |
getC_Project_ID()
Get Project |
int |
getC_RevenueRecognition_ID()
Get Revenue Recognition |
int |
getC_SalesRegion_ID()
Get SalesRegion |
int |
getC_Tax_ID()
Line Tax |
int |
getC_UOM_ID()
Quantity UOM |
MAccount |
getChargeAccount(MAcctSchema as,
BigDecimal amount)
Get Charge Account |
BigDecimal |
getChargeAmt()
Charge Amount |
Timestamp |
getDateAcct()
Get Accounting Date |
Timestamp |
getDateDoc()
Get Document Date |
String |
getDescription()
Description |
BigDecimal |
getDiscount()
Line Discount |
int |
getLine()
Get Line Number |
BigDecimal |
getListAmount()
Line List Amount |
int |
getM_AttributeSetInstance_ID()
ASI |
int |
getM_Locator_ID()
Get Warehouse Locator (from) |
int |
getM_LocatorTo_ID()
Get Warehouse Locator To |
int |
getM_Product_ID()
Product |
int |
getM_ProductionPlan_ID()
Get Production Plan |
int |
getOrder_Org_ID()
Get Order AD_Org_ID |
MProduct |
getProduct()
Get Product |
ProductCost |
getProductCost()
Get Product Cost Info |
BigDecimal |
getProductCosts(MAcctSchema as,
int AD_Org_ID,
boolean zeroCostsOK)
Get Total Product Costs |
BigDecimal |
getProductCosts(MAcctSchema as,
int AD_Org_ID,
boolean zeroCostsOK,
String whereClause)
Get Total Product Costs from Cost Detail or from Current Cost |
BigDecimal |
getQty()
Quantity |
int |
getUser1_ID()
Get User 1 |
int |
getUser2_ID()
Get User 2 |
int |
getValue(String ColumnName)
Get User Defined Column |
boolean |
isItem()
Is this an Item Product (vs. not a Service, a charge) |
boolean |
isProductionBOM()
Is this the BOM to be produced |
void |
setAccount(MAccount acct)
Set GL Journal Account |
void |
setAmount(BigDecimal sourceAmt)
Set Amount (DR) |
void |
setAmount(BigDecimal amtSourceDr,
BigDecimal amtSourceCr)
Set Amounts |
void |
setAmount(BigDecimal LineNetAmt,
BigDecimal PriceList,
BigDecimal Qty)
Set Product Amounts |
protected void |
setC_BPartner_ID(int C_BPartner_ID)
Set C_BPartner_ID |
protected void |
setC_ConversionType_ID(int C_ConversionType_ID)
Set C_ConversionType_ID |
void |
setC_LocFrom_ID(int C_LocFrom_ID)
Set C_LocFrom_ID |
void |
setC_LocTo_ID(int C_LocTo_ID)
Set C_LocTo_ID |
protected void |
setC_Period_ID(int C_Period_ID)
Set C_Period_ID |
void |
setConvertedAmt(int C_AcctSchema_ID,
BigDecimal amtAcctDr,
BigDecimal amtAcctCr)
Set Converted Amounts |
void |
setDateAcct(Timestamp dateAcct)
Set Accounting Date |
void |
setDateDoc(Timestamp dateDoc)
Set Document Date |
void |
setLineNetAmtDifference(BigDecimal diff)
Set Line Net Amt Difference |
void |
setProductionBOM(boolean productionBOM)
Set Production BOM flag |
void |
setQty(BigDecimal qty,
boolean isSOTrx)
Quantity |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected PO p_po
protected CLogger log
| Constructor Detail |
|---|
public DocLine(PO po,
Doc doc)
po - line persistent objectdoc - header| Method Detail |
|---|
public int getC_Currency_ID()
public int getC_ConversionType_ID()
protected void setC_ConversionType_ID(int C_ConversionType_ID)
C_ConversionType_ID - idpublic void setAmount(BigDecimal sourceAmt)
sourceAmt - source amt
public void setAmount(BigDecimal amtSourceDr,
BigDecimal amtSourceCr)
amtSourceDr - source amount dramtSourceCr - source amount cr
public void setConvertedAmt(int C_AcctSchema_ID,
BigDecimal amtAcctDr,
BigDecimal amtAcctCr)
C_AcctSchema_ID - acct schemaamtAcctDr - acct amount dramtAcctCr - acct amount crpublic BigDecimal getAmtSource()
public BigDecimal getAmtSourceDr()
public BigDecimal getAmtSourceCr()
public BigDecimal getAmtAcctDr()
public BigDecimal getAmtAcctCr()
public BigDecimal getChargeAmt()
public void setAmount(BigDecimal LineNetAmt,
BigDecimal PriceList,
BigDecimal Qty)
LineNetAmt - Line Net AmtPriceList - Price ListQty - Qty for discount calcpublic BigDecimal getDiscount()
public BigDecimal getListAmount()
public void setLineNetAmtDifference(BigDecimal diff)
diff - difference (to be subtracted)public void setDateAcct(Timestamp dateAcct)
dateAcct - acct datepublic Timestamp getDateAcct()
public void setDateDoc(Timestamp dateDoc)
dateDoc - doc datepublic Timestamp getDateDoc()
public void setAccount(MAccount acct)
acct - accountpublic MAccount getAccount()
public MAccount getAccount(int AcctType,
MAcctSchema as)
AcctType - see ProductCost.ACCTTYPE_* (0..3)as - Accounting schema
protected int getC_Charge_ID()
public MAccount getChargeAccount(MAcctSchema as,
BigDecimal amount)
as - account schemaamount - amount for expense(+)/revenue(-)
protected int getC_Period_ID()
protected void setC_Period_ID(int C_Period_ID)
C_Period_ID - idpublic int getC_AcctSchema_ID()
public int get_ID()
public int getAD_Org_ID()
public int getOrder_Org_ID()
public int getM_Product_ID()
public boolean isItem()
public int getM_AttributeSetInstance_ID()
public int getM_Locator_ID()
public int getM_LocatorTo_ID()
public void setProductionBOM(boolean productionBOM)
productionBOM - flagpublic boolean isProductionBOM()
public int getM_ProductionPlan_ID()
public int getC_OrderLine_ID()
public int getC_LocFrom_ID()
public void setC_LocFrom_ID(int C_LocFrom_ID)
C_LocFrom_ID - loc frompublic int getC_LocTo_ID()
public void setC_LocTo_ID(int C_LocTo_ID)
C_LocTo_ID - loc topublic ProductCost getProductCost()
public BigDecimal getProductCosts(MAcctSchema as,
int AD_Org_ID,
boolean zeroCostsOK,
String whereClause)
as - accounting schemaAD_Org_ID - trx orgzeroCostsOK - zero/no costs are OKwhereClause - null are OK
public BigDecimal getProductCosts(MAcctSchema as,
int AD_Org_ID,
boolean zeroCostsOK)
as - accounting schemaAD_Org_ID - trx orgzeroCostsOK - zero/no costs are OK
public MProduct getProduct()
public int getC_RevenueRecognition_ID()
public int getC_UOM_ID()
public void setQty(BigDecimal qty,
boolean isSOTrx)
qty - transaction QtyisSOTrx - SL order trx (i.e. negative qty)public BigDecimal getQty()
public String getDescription()
public int getC_Tax_ID()
public int getLine()
public int getC_BPartner_ID()
protected void setC_BPartner_ID(int C_BPartner_ID)
C_BPartner_ID - idpublic int getC_BPartner_Location_ID()
public int getAD_OrgTrx_ID()
public int getC_SalesRegion_ID()
public int getC_Project_ID()
public int getC_Campaign_ID()
public int getC_Activity_ID()
public int getUser1_ID()
public int getUser2_ID()
public int getValue(String ColumnName)
ColumnName - column name
public String toString()
toString in class Object
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||