Adempiere 3.5.2a

org.compiere.model
Class X_C_Tax

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_C_Tax
All Implemented Interfaces:
Serializable, Comparator, I_C_Tax, I_Persistent, Evaluatee
Direct Known Subclasses:
MTax

public class X_C_Tax
extends PO
implements I_C_Tax, I_Persistent

Generated Model for C_Tax

Version:
Release 3.5.2a - $Id$
Author:
Adempiere (generated)
See Also:
Serialized Form

Field Summary
static int C_COUNTRY_ID_AD_Reference_ID
          C_Country_ID AD_Reference_ID=156
static int C_REGION_ID_AD_Reference_ID
          C_Region_ID AD_Reference_ID=157
static int PARENT_TAX_ID_AD_Reference_ID
          Parent_Tax_ID AD_Reference_ID=158
static int SOPOTYPE_AD_Reference_ID
          SOPOType AD_Reference_ID=287
static String SOPOTYPE_Both
          Both = B
static String SOPOTYPE_PurchaseTax
          Purchase Tax = P
static String SOPOTYPE_SalesTax
          Sales Tax = S
static int TO_COUNTRY_ID_AD_Reference_ID
          To_Country_ID AD_Reference_ID=156
static int TO_REGION_ID_AD_Reference_ID
          To_Region_ID AD_Reference_ID=157
 
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
 
Fields inherited from interface org.compiere.model.I_C_Tax
accessLevel, COLUMNNAME_AD_Rule_ID, COLUMNNAME_C_Country_ID, COLUMNNAME_C_Region_ID, COLUMNNAME_C_Tax_ID, COLUMNNAME_C_TaxCategory_ID, COLUMNNAME_Description, COLUMNNAME_IsDefault, COLUMNNAME_IsDocumentLevel, COLUMNNAME_IsSalesTax, COLUMNNAME_IsSummary, COLUMNNAME_IsTaxExempt, COLUMNNAME_Name, COLUMNNAME_Parent_Tax_ID, COLUMNNAME_Rate, COLUMNNAME_RequiresTaxCertificate, COLUMNNAME_SOPOType, COLUMNNAME_TaxIndicator, COLUMNNAME_To_Country_ID, COLUMNNAME_To_Region_ID, COLUMNNAME_ValidFrom, Model, Table_ID, Table_Name
 
Constructor Summary
X_C_Tax(Properties ctx, int C_Tax_ID, String trxName)
          Standard Constructor
X_C_Tax(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  int get_AccessLevel()
          AccessLevel
 int getAD_Rule_ID()
          Get Rule.
 I_AD_Rule getAD_Rule()
           
 int getC_Country_ID()
          Get Country.
 int getC_Region_ID()
          Get Region.
 int getC_Tax_ID()
          Get Tax.
 int getC_TaxCategory_ID()
          Get Tax Category.
 I_C_TaxCategory getC_TaxCategory()
           
 String getDescription()
          Get Description.
 KeyNamePair getKeyNamePair()
          Get Record ID/ColumnName
 String getName()
          Get Name.
 int getParent_Tax_ID()
          Get Parent Tax.
 BigDecimal getRate()
          Get Rate.
 String getSOPOType()
          Get SO/PO Type.
 String getTaxIndicator()
          Get Tax Indicator.
 int getTo_Country_ID()
          Get To.
 int getTo_Region_ID()
          Get To.
 Timestamp getValidFrom()
          Get Valid from.
protected  POInfo initPO(Properties ctx)
          Load Meta Data
 boolean isDefault()
          Get Default.
 boolean isDocumentLevel()
          Get Document Level.
 boolean isRequiresTaxCertificate()
          Get Requires Tax Certificate.
 boolean isSalesTax()
          Get Sales Tax.
 boolean isSummary()
          Get Summary Level.
 boolean isTaxExempt()
          Get Tax exempt.
 void setAD_Rule_ID(int AD_Rule_ID)
          Set Rule.
 void setC_Country_ID(int C_Country_ID)
          Set Country.
 void setC_Region_ID(int C_Region_ID)
          Set Region.
 void setC_Tax_ID(int C_Tax_ID)
          Set Tax.
 void setC_TaxCategory_ID(int C_TaxCategory_ID)
          Set Tax Category.
 void setDescription(String Description)
          Set Description.
 void setIsDefault(boolean IsDefault)
          Set Default.
 void setIsDocumentLevel(boolean IsDocumentLevel)
          Set Document Level.
 void setIsSalesTax(boolean IsSalesTax)
          Set Sales Tax.
 void setIsSummary(boolean IsSummary)
          Set Summary Level.
 void setIsTaxExempt(boolean IsTaxExempt)
          Set Tax exempt.
 void setName(String Name)
          Set Name.
 void setParent_Tax_ID(int Parent_Tax_ID)
          Set Parent Tax.
 void setRate(BigDecimal Rate)
          Set Rate.
 void setRequiresTaxCertificate(boolean RequiresTaxCertificate)
          Set Requires Tax Certificate.
 void setSOPOType(String SOPOType)
          Set SO/PO Type.
 void setTaxIndicator(String TaxIndicator)
          Set Tax Indicator.
 void setTo_Country_ID(int To_Country_ID)
          Set To.
 void setTo_Region_ID(int To_Region_ID)
          Set To.
 void setValidFrom(Timestamp ValidFrom)
          Set Valid from.
 String toString()
          String representation
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
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
 

Field Detail

C_COUNTRY_ID_AD_Reference_ID

public static final int C_COUNTRY_ID_AD_Reference_ID
C_Country_ID AD_Reference_ID=156

See Also:
Constant Field Values

C_REGION_ID_AD_Reference_ID

public static final int C_REGION_ID_AD_Reference_ID
C_Region_ID AD_Reference_ID=157

See Also:
Constant Field Values

PARENT_TAX_ID_AD_Reference_ID

public static final int PARENT_TAX_ID_AD_Reference_ID
Parent_Tax_ID AD_Reference_ID=158

See Also:
Constant Field Values

SOPOTYPE_AD_Reference_ID

public static final int SOPOTYPE_AD_Reference_ID
SOPOType AD_Reference_ID=287

See Also:
Constant Field Values

SOPOTYPE_Both

public static final String SOPOTYPE_Both
Both = B

See Also:
Constant Field Values

SOPOTYPE_SalesTax

public static final String SOPOTYPE_SalesTax
Sales Tax = S

See Also:
Constant Field Values

SOPOTYPE_PurchaseTax

public static final String SOPOTYPE_PurchaseTax
Purchase Tax = P

See Also:
Constant Field Values

TO_COUNTRY_ID_AD_Reference_ID

public static final int TO_COUNTRY_ID_AD_Reference_ID
To_Country_ID AD_Reference_ID=156

See Also:
Constant Field Values

TO_REGION_ID_AD_Reference_ID

public static final int TO_REGION_ID_AD_Reference_ID
To_Region_ID AD_Reference_ID=157

See Also:
Constant Field Values
Constructor Detail

X_C_Tax

public X_C_Tax(Properties ctx,
               int C_Tax_ID,
               String trxName)
Standard Constructor


X_C_Tax

public X_C_Tax(Properties ctx,
               ResultSet rs,
               String trxName)
Load Constructor

Method Detail

get_AccessLevel

protected int get_AccessLevel()
AccessLevel

Specified by:
get_AccessLevel in class PO
Returns:
2 - Client

initPO

protected POInfo initPO(Properties ctx)
Load Meta Data

Specified by:
initPO in class PO
Parameters:
ctx - context
Returns:
POInfo

toString

public String toString()
Description copied from class: PO
String representation

Overrides:
toString in class PO
Returns:
String representation

getAD_Rule

public I_AD_Rule getAD_Rule()
                     throws Exception
Specified by:
getAD_Rule in interface I_C_Tax
Throws:
Exception

setAD_Rule_ID

public void setAD_Rule_ID(int AD_Rule_ID)
Set Rule.

Specified by:
setAD_Rule_ID in interface I_C_Tax
Parameters:
AD_Rule_ID - Rule

getAD_Rule_ID

public int getAD_Rule_ID()
Get Rule.

Specified by:
getAD_Rule_ID in interface I_C_Tax
Returns:
Rule

setC_Country_ID

public void setC_Country_ID(int C_Country_ID)
Set Country.

Specified by:
setC_Country_ID in interface I_C_Tax
Parameters:
C_Country_ID - Country

getC_Country_ID

public int getC_Country_ID()
Get Country.

Specified by:
getC_Country_ID in interface I_C_Tax
Returns:
Country

setC_Region_ID

public void setC_Region_ID(int C_Region_ID)
Set Region.

Specified by:
setC_Region_ID in interface I_C_Tax
Parameters:
C_Region_ID - Identifies a geographical Region

getC_Region_ID

public int getC_Region_ID()
Get Region.

Specified by:
getC_Region_ID in interface I_C_Tax
Returns:
Identifies a geographical Region

getC_TaxCategory

public I_C_TaxCategory getC_TaxCategory()
                                 throws Exception
Specified by:
getC_TaxCategory in interface I_C_Tax
Throws:
Exception

setC_TaxCategory_ID

public void setC_TaxCategory_ID(int C_TaxCategory_ID)
Set Tax Category.

Specified by:
setC_TaxCategory_ID in interface I_C_Tax
Parameters:
C_TaxCategory_ID - Tax Category

getC_TaxCategory_ID

public int getC_TaxCategory_ID()
Get Tax Category.

Specified by:
getC_TaxCategory_ID in interface I_C_Tax
Returns:
Tax Category

setC_Tax_ID

public void setC_Tax_ID(int C_Tax_ID)
Set Tax.

Specified by:
setC_Tax_ID in interface I_C_Tax
Parameters:
C_Tax_ID - Tax identifier

getC_Tax_ID

public int getC_Tax_ID()
Get Tax.

Specified by:
getC_Tax_ID in interface I_C_Tax
Returns:
Tax identifier

setDescription

public void setDescription(String Description)
Set Description.

Specified by:
setDescription in interface I_C_Tax
Parameters:
Description - Optional short description of the record

getDescription

public String getDescription()
Get Description.

Specified by:
getDescription in interface I_C_Tax
Returns:
Optional short description of the record

setIsDefault

public void setIsDefault(boolean IsDefault)
Set Default.

Specified by:
setIsDefault in interface I_C_Tax
Parameters:
IsDefault - Default value

isDefault

public boolean isDefault()
Get Default.

Specified by:
isDefault in interface I_C_Tax
Returns:
Default value

setIsDocumentLevel

public void setIsDocumentLevel(boolean IsDocumentLevel)
Set Document Level.

Specified by:
setIsDocumentLevel in interface I_C_Tax
Parameters:
IsDocumentLevel - Tax is calculated on document level (rather than line by line)

isDocumentLevel

public boolean isDocumentLevel()
Get Document Level.

Specified by:
isDocumentLevel in interface I_C_Tax
Returns:
Tax is calculated on document level (rather than line by line)

setIsSalesTax

public void setIsSalesTax(boolean IsSalesTax)
Set Sales Tax.

Specified by:
setIsSalesTax in interface I_C_Tax
Parameters:
IsSalesTax - This is a sales tax (i.e. not a value added tax)

isSalesTax

public boolean isSalesTax()
Get Sales Tax.

Specified by:
isSalesTax in interface I_C_Tax
Returns:
This is a sales tax (i.e. not a value added tax)

setIsSummary

public void setIsSummary(boolean IsSummary)
Set Summary Level.

Specified by:
setIsSummary in interface I_C_Tax
Parameters:
IsSummary - This is a summary entity

isSummary

public boolean isSummary()
Get Summary Level.

Specified by:
isSummary in interface I_C_Tax
Returns:
This is a summary entity

setIsTaxExempt

public void setIsTaxExempt(boolean IsTaxExempt)
Set Tax exempt.

Specified by:
setIsTaxExempt in interface I_C_Tax
Parameters:
IsTaxExempt - Business partner is exempt from tax

isTaxExempt

public boolean isTaxExempt()
Get Tax exempt.

Specified by:
isTaxExempt in interface I_C_Tax
Returns:
Business partner is exempt from tax

setName

public void setName(String Name)
Set Name.

Specified by:
setName in interface I_C_Tax
Parameters:
Name - Alphanumeric identifier of the entity

getName

public String getName()
Get Name.

Specified by:
getName in interface I_C_Tax
Returns:
Alphanumeric identifier of the entity

getKeyNamePair

public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName

Returns:
ID/ColumnName pair

setParent_Tax_ID

public void setParent_Tax_ID(int Parent_Tax_ID)
Set Parent Tax.

Specified by:
setParent_Tax_ID in interface I_C_Tax
Parameters:
Parent_Tax_ID - Parent Tax indicates a tax that is made up of multiple taxes

getParent_Tax_ID

public int getParent_Tax_ID()
Get Parent Tax.

Specified by:
getParent_Tax_ID in interface I_C_Tax
Returns:
Parent Tax indicates a tax that is made up of multiple taxes

setRate

public void setRate(BigDecimal Rate)
Set Rate.

Specified by:
setRate in interface I_C_Tax
Parameters:
Rate - Rate or Tax or Exchange

getRate

public BigDecimal getRate()
Get Rate.

Specified by:
getRate in interface I_C_Tax
Returns:
Rate or Tax or Exchange

setRequiresTaxCertificate

public void setRequiresTaxCertificate(boolean RequiresTaxCertificate)
Set Requires Tax Certificate.

Specified by:
setRequiresTaxCertificate in interface I_C_Tax
Parameters:
RequiresTaxCertificate - This tax rate requires the Business Partner to be tax exempt

isRequiresTaxCertificate

public boolean isRequiresTaxCertificate()
Get Requires Tax Certificate.

Specified by:
isRequiresTaxCertificate in interface I_C_Tax
Returns:
This tax rate requires the Business Partner to be tax exempt

setSOPOType

public void setSOPOType(String SOPOType)
Set SO/PO Type.

Specified by:
setSOPOType in interface I_C_Tax
Parameters:
SOPOType - Sales Tax applies to sales situations, Purchase Tax to purchase situations

getSOPOType

public String getSOPOType()
Get SO/PO Type.

Specified by:
getSOPOType in interface I_C_Tax
Returns:
Sales Tax applies to sales situations, Purchase Tax to purchase situations

setTaxIndicator

public void setTaxIndicator(String TaxIndicator)
Set Tax Indicator.

Specified by:
setTaxIndicator in interface I_C_Tax
Parameters:
TaxIndicator - Short form for Tax to be printed on documents

getTaxIndicator

public String getTaxIndicator()
Get Tax Indicator.

Specified by:
getTaxIndicator in interface I_C_Tax
Returns:
Short form for Tax to be printed on documents

setTo_Country_ID

public void setTo_Country_ID(int To_Country_ID)
Set To.

Specified by:
setTo_Country_ID in interface I_C_Tax
Parameters:
To_Country_ID - Receiving Country

getTo_Country_ID

public int getTo_Country_ID()
Get To.

Specified by:
getTo_Country_ID in interface I_C_Tax
Returns:
Receiving Country

setTo_Region_ID

public void setTo_Region_ID(int To_Region_ID)
Set To.

Specified by:
setTo_Region_ID in interface I_C_Tax
Parameters:
To_Region_ID - Receiving Region

getTo_Region_ID

public int getTo_Region_ID()
Get To.

Specified by:
getTo_Region_ID in interface I_C_Tax
Returns:
Receiving Region

setValidFrom

public void setValidFrom(Timestamp ValidFrom)
Set Valid from.

Specified by:
setValidFrom in interface I_C_Tax
Parameters:
ValidFrom - Valid from including this date (first day)

getValidFrom

public Timestamp getValidFrom()
Get Valid from.

Specified by:
getValidFrom in interface I_C_Tax
Returns:
Valid from including this date (first day)

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.