Package org.openbravo.erpCommon.ad_forms
Class DocLine
- java.lang.Object
-
- org.openbravo.erpCommon.ad_forms.DocLine
-
- Direct Known Subclasses:
DocLine_Amortization
,DocLine_Bank
,DocLine_Cash
,DocLine_CostAdjustment
,DocLine_DPManagement
,DocLine_FinPaymentSchedule
,DocLine_GLJournal
,DocLine_Invoice
,DocLine_LandedCost
,DocLine_LCCost
,DocLine_Material
,DocLine_Payment
,DocLineCashVATReady_PaymentTransactionReconciliation
public class DocLine extends Object
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyInfo(DocLine source)
Account
getAccount()
Get Journal AccountString
getAmount()
Line Net Amount or Dr-CrString
getAmtSourceCr()
Get (Journal) Line Source Cr AmountString
getAmtSourceDr()
Get (Journal) Line Source Dr AmountString
getC_AcctSchema_ID()
Get (Journal) AcctSchemaAccount
getChargeAccount(AcctSchema as, BigDecimal amount, ConnectionProvider conn)
Get Charge AccountString
getM_C_Tax_ID()
String
getM_C_WithHolding_ID()
String
getM_description()
String
getServletInfo()
void
loadAttributes(FieldProvider data, AcctServer vo)
void
setAccount(Account acct)
Set Journal Accountvoid
setAD_Org_ID(String AD_Org_ID)
Set AD_Org_ID.void
setAmount(String sourceAmt)
Set Amount (DR)void
setAmount(String amtSourceDr, String amtSourceCr)
void
setConvertedAmt(String C_AcctSchema_ID, String amtAcctDr, String amtAcctCr)
Set Converted Amountsvoid
setM_C_Tax_ID(String tax_ID)
void
setM_C_WithHolding_ID(String withHolding_ID)
void
setQty(String qty)
Quantity
-
-
-
Field Detail
-
ZERO
public BigDecimal ZERO
-
p_DocumentType
public String p_DocumentType
-
m_TrxHeader_ID
public String m_TrxHeader_ID
ID - Trx Header
-
m_TrxLine_ID
public String m_TrxLine_ID
ID - Line ID
-
m_Line
public String m_Line
Line
-
m_C_UOM_ID
public String m_C_UOM_ID
Qty UOM
-
m_qty
public String m_qty
Qty
-
m_C_Currency_ID
public String m_C_Currency_ID
Currency
-
m_AmtSourceDr
public String m_AmtSourceDr
Debit Journal Amt
-
m_AmtSourceCr
public String m_AmtSourceCr
Credit Journal Amt
-
m_AmtAcctDr
public String m_AmtAcctDr
Converted Amounts
-
m_AmtAcctCr
public String m_AmtAcctCr
-
m_C_AcctSchema_ID
public String m_C_AcctSchema_ID
-
p_productInfo
public ProductInfo p_productInfo
-
m_account
public Account m_account
Account used only for GL Journal
-
m_AD_Org_ID
public String m_AD_Org_ID
-
m_A_Asset_ID
public String m_A_Asset_ID
-
m_C_BPartner_ID
public String m_C_BPartner_ID
-
m_M_Product_ID
public String m_M_Product_ID
-
m_C_Glitem_ID
public String m_C_Glitem_ID
-
m_AD_OrgTrx_ID
public String m_AD_OrgTrx_ID
-
m_C_SalesRegion_ID
public String m_C_SalesRegion_ID
-
m_C_Project_ID
public String m_C_Project_ID
-
m_C_Campaign_ID
public String m_C_Campaign_ID
-
m_C_Activity_ID
public String m_C_Activity_ID
-
m_C_LocFrom_ID
public String m_C_LocFrom_ID
-
m_C_LocTo_ID
public String m_C_LocTo_ID
-
m_User1_ID
public String m_User1_ID
-
m_User2_ID
public String m_User2_ID
-
m_C_Costcenter_ID
public String m_C_Costcenter_ID
-
m_C_Charge_ID
public String m_C_Charge_ID
-
m_ChargeAmt
public String m_ChargeAmt
-
m_description
public String m_description
Description
-
m_C_Tax_ID
public String m_C_Tax_ID
Tax ID
-
m_C_WithHolding_ID
public String m_C_WithHolding_ID
WithHolding ID
-
m_DateAcct
public String m_DateAcct
-
m_DateDoc
public String m_DateDoc
-
m_Record_Id2
public String m_Record_Id2
-
-
Method Detail
-
getM_C_Tax_ID
public String getM_C_Tax_ID()
-
setM_C_Tax_ID
public void setM_C_Tax_ID(String tax_ID)
-
loadAttributes
public void loadAttributes(FieldProvider data, AcctServer vo)
-
copyInfo
public void copyInfo(DocLine source)
-
getM_C_WithHolding_ID
public String getM_C_WithHolding_ID()
-
setM_C_WithHolding_ID
public void setM_C_WithHolding_ID(String withHolding_ID)
-
setConvertedAmt
public void setConvertedAmt(String C_AcctSchema_ID, String amtAcctDr, String amtAcctCr)
Set Converted Amounts- Parameters:
C_AcctSchema_ID
- acct schemaamtAcctDr
- acct amount dramtAcctCr
- acct amount cr
-
setAccount
public void setAccount(Account acct)
Set Journal Account- Parameters:
acct
- account
-
setAD_Org_ID
public void setAD_Org_ID(String AD_Org_ID)
Set AD_Org_ID. For GL Journal overwrite- Parameters:
AD_Org_ID
- org
-
getChargeAccount
public Account getChargeAccount(AcctSchema as, BigDecimal amount, ConnectionProvider conn)
Get Charge Account- Parameters:
as
- account schemaamount
- amount for expense(+)/revenue(-)- Returns:
- Charge Account or null
-
getC_AcctSchema_ID
public String getC_AcctSchema_ID()
Get (Journal) AcctSchema- Returns:
- C_AcctSchema_ID
-
getAccount
public Account getAccount()
Get Journal Account- Returns:
- account
-
getAmtSourceDr
public String getAmtSourceDr()
Get (Journal) Line Source Dr Amount- Returns:
- DR source amount
-
getAmtSourceCr
public String getAmtSourceCr()
Get (Journal) Line Source Cr Amount- Returns:
- CR source amount
-
setQty
public void setQty(String qty)
Quantity- Parameters:
qty
- transaction Qty
-
getAmount
public String getAmount()
Line Net Amount or Dr-Cr- Returns:
- balance
-
setAmount
public void setAmount(String sourceAmt)
Set Amount (DR)- Parameters:
sourceAmt
- source amt
-
getM_description
public String getM_description()
- Returns:
- the m_description
-
getServletInfo
public String getServletInfo()
-
-