Package org.compiere.acct
Class DocTax
java.lang.Object
org.compiere.acct.DocTax
Document Tax Line
- Version:
- $Id: DocTax.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Tax Creditstatic final int
Tax Desonstatic final int
Tax Due Acctstatic final int
Tax Expense -
Constructor Summary
ConstructorDescriptionDocTax
(int C_Tax_ID, String name, BigDecimal rate, BigDecimal taxBaseAmt, BigDecimal amount, boolean salesTax) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIncludedTax
(BigDecimal amt) Add to Included TaxgetAccount
(int AcctType, MAcctSchema as) Get AccountGet Amountint
Get AP Tax Typeint
Get C_Tax_IDGet Description (Tax Name and Base Amount)Get Included Tax AmountGet Included Tax DifferencegetName()
Get Name of TaxgetRate()
Get RateGet Base Amountboolean
Included Tax differs from tax amountboolean
Is Sales TaxtoString()
Return String representation
-
Field Details
-
ACCTTYPE_TaxDue
public static final int ACCTTYPE_TaxDueTax Due Acct- See Also:
-
ACCTTYPE_TaxCredit
public static final int ACCTTYPE_TaxCreditTax Credit- See Also:
-
ACCTTYPE_TaxExpense
public static final int ACCTTYPE_TaxExpenseTax Expense- See Also:
-
ACCTTYPE_TaxDeson
public static final int ACCTTYPE_TaxDesonTax Deson- See Also:
-
-
Constructor Details
-
DocTax
public DocTax(int C_Tax_ID, String name, BigDecimal rate, BigDecimal taxBaseAmt, BigDecimal amount, boolean salesTax) - Parameters:
C_Tax_ID
- taxname
- namerate
- ratetaxBaseAmt
- tax base amountamount
- amountsalesTax
- sales tax flag
-
-
Method Details
-
getAccount
Get Account- Parameters:
AcctType
- see ACCTTYPE_*as
- account schema- Returns:
- Account
-
getAmount
Get Amount- Returns:
- gross amount
-
getTaxBaseAmt
Get Base Amount- Returns:
- net amount
-
getRate
Get Rate- Returns:
- tax rate in percent
-
getName
Get Name of Tax- Returns:
- name of tax
-
getC_Tax_ID
public int getC_Tax_ID()Get C_Tax_ID- Returns:
- C_Tax_ID
-
getDescription
Get Description (Tax Name and Base Amount)- Returns:
- tax anme and base amount
-
addIncludedTax
Add to Included Tax- Parameters:
amt
- amount
-
getIncludedTax
Get Included Tax Amount- Returns:
- included tax amount
-
getIncludedTaxDifference
Get Included Tax Difference- Returns:
- tax amount - included amount
-
isIncludedTaxDifference
public boolean isIncludedTaxDifference()Included Tax differs from tax amount- Returns:
- true if difference
-
getAPTaxType
public int getAPTaxType()Get AP Tax Type- Returns:
- AP tax type (Credit or Expense)
-
isSalesTax
public boolean isSalesTax()Is Sales Tax- Returns:
- true if this is sales tax
-
toString
Return String representation
-