Package org.compiere.model
Class X_C_Tax
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_C_Tax
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparator<Object>,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 9 - $Id$
- Author:
- iDempiere (generated)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSOPOTYPE_AD_Reference_IDSOPOType AD_Reference_ID=287static StringSOPOTYPE_BothBoth = Bstatic StringSOPOTYPE_PurchaseTaxPurchase Tax = Pstatic StringSOPOTYPE_SalesTaxSales Tax = S-
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, LOCAL_TRX_PREFIX, 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_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_Rule_ID, COLUMNNAME_C_Country_ID, COLUMNNAME_C_CountryGroupFrom_ID, COLUMNNAME_C_CountryGroupTo_ID, COLUMNNAME_C_Region_ID, COLUMNNAME_C_Tax_ID, COLUMNNAME_C_Tax_UU, COLUMNNAME_C_TaxCategory_ID, COLUMNNAME_C_TaxProvider_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_Description, COLUMNNAME_IsActive, 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_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_ValidFrom, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description X_C_Tax(Properties ctx, int C_Tax_ID, String trxName)Standard ConstructorX_C_Tax(Properties ctx, ResultSet rs, String trxName)Load Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intget_AccessLevel()AccessLevelI_AD_RulegetAD_Rule()intgetAD_Rule_ID()Get Rule.intgetC_Country_ID()Get Country.I_C_CountryGroupgetC_CountryGroupFrom()intgetC_CountryGroupFrom_ID()Get Country Group From.I_C_CountryGroupgetC_CountryGroupTo()intgetC_CountryGroupTo_ID()Get Country Group To.I_C_RegiongetC_Region()intgetC_Region_ID()Get Region.intgetC_Tax_ID()Get Tax.StringgetC_Tax_UU()Get C_Tax_UU.I_C_TaxCategorygetC_TaxCategory()intgetC_TaxCategory_ID()Get Tax Category.I_C_TaxProvidergetC_TaxProvider()intgetC_TaxProvider_ID()Get Tax Provider.StringgetDescription()Get Description.KeyNamePairgetKeyNamePair()Get Record ID/ColumnNameStringgetName()Get Name.I_C_TaxgetParent_Tax()intgetParent_Tax_ID()Get Parent Tax.BigDecimalgetRate()Get Rate.StringgetSOPOType()Get SO/PO Type.StringgetTaxIndicator()Get Tax Indicator.intgetTo_Country_ID()Get To.I_C_RegiongetTo_Region()intgetTo_Region_ID()Get To.TimestampgetValidFrom()Get Valid from.protected POInfoinitPO(Properties ctx)Load Meta DatabooleanisDefault()Get Default.booleanisDocumentLevel()Get Document Level.booleanisRequiresTaxCertificate()Get Requires Tax Certificate.booleanisSalesTax()Get Sales Tax.booleanisSummary()Get Summary Level.booleanisTaxExempt()Get SO Tax exempt.voidsetAD_Rule_ID(int AD_Rule_ID)Set Rule.voidsetC_Country_ID(int C_Country_ID)Set Country.voidsetC_CountryGroupFrom_ID(int C_CountryGroupFrom_ID)Set Country Group From.voidsetC_CountryGroupTo_ID(int C_CountryGroupTo_ID)Set Country Group To.voidsetC_Region_ID(int C_Region_ID)Set Region.voidsetC_Tax_ID(int C_Tax_ID)Set Tax.voidsetC_Tax_UU(String C_Tax_UU)Set C_Tax_UU.voidsetC_TaxCategory_ID(int C_TaxCategory_ID)Set Tax Category.voidsetC_TaxProvider_ID(int C_TaxProvider_ID)Set Tax Provider.voidsetDescription(String Description)Set Description.voidsetIsDefault(boolean IsDefault)Set Default.voidsetIsDocumentLevel(boolean IsDocumentLevel)Set Document Level.voidsetIsSalesTax(boolean IsSalesTax)Set Sales Tax.voidsetIsSummary(boolean IsSummary)Set Summary Level.voidsetIsTaxExempt(boolean IsTaxExempt)Set SO Tax exempt.voidsetName(String Name)Set Name.voidsetParent_Tax_ID(int Parent_Tax_ID)Set Parent Tax.voidsetRate(BigDecimal Rate)Set Rate.voidsetRequiresTaxCertificate(boolean RequiresTaxCertificate)Set Requires Tax Certificate.voidsetSOPOType(String SOPOType)Set SO/PO Type.voidsetTaxIndicator(String TaxIndicator)Set Tax Indicator.voidsetTo_Country_ID(int To_Country_ID)Set To.voidsetTo_Region_ID(int To_Region_ID)Set To.voidsetValidFrom(Timestamp ValidFrom)Set Valid from.StringtoString()String representation-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, 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_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_C_Tax
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
-
-
-
Field Detail
-
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_PurchaseTax
public static final String SOPOTYPE_PurchaseTax
Purchase Tax = P- See Also:
- Constant Field Values
-
SOPOTYPE_SalesTax
public static final String SOPOTYPE_SalesTax
Sales Tax = S- 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_AccessLevelin classPO- Returns:
- 2 - Client
-
initPO
protected POInfo initPO(Properties ctx)
Load Meta Data
-
getAD_Rule
public I_AD_Rule getAD_Rule() throws RuntimeException
- Specified by:
getAD_Rulein interfaceI_C_Tax- Throws:
RuntimeException
-
setAD_Rule_ID
public void setAD_Rule_ID(int AD_Rule_ID)
Set Rule.- Specified by:
setAD_Rule_IDin interfaceI_C_Tax- Parameters:
AD_Rule_ID- Rule
-
getAD_Rule_ID
public int getAD_Rule_ID()
Get Rule.- Specified by:
getAD_Rule_IDin interfaceI_C_Tax- Returns:
- Rule
-
getC_CountryGroupFrom
public I_C_CountryGroup getC_CountryGroupFrom() throws RuntimeException
- Specified by:
getC_CountryGroupFromin interfaceI_C_Tax- Throws:
RuntimeException
-
setC_CountryGroupFrom_ID
public void setC_CountryGroupFrom_ID(int C_CountryGroupFrom_ID)
Set Country Group From.- Specified by:
setC_CountryGroupFrom_IDin interfaceI_C_Tax- Parameters:
C_CountryGroupFrom_ID- Country Group From
-
getC_CountryGroupFrom_ID
public int getC_CountryGroupFrom_ID()
Get Country Group From.- Specified by:
getC_CountryGroupFrom_IDin interfaceI_C_Tax- Returns:
- Country Group From
-
getC_CountryGroupTo
public I_C_CountryGroup getC_CountryGroupTo() throws RuntimeException
- Specified by:
getC_CountryGroupToin interfaceI_C_Tax- Throws:
RuntimeException
-
setC_CountryGroupTo_ID
public void setC_CountryGroupTo_ID(int C_CountryGroupTo_ID)
Set Country Group To.- Specified by:
setC_CountryGroupTo_IDin interfaceI_C_Tax- Parameters:
C_CountryGroupTo_ID- Country Group To
-
getC_CountryGroupTo_ID
public int getC_CountryGroupTo_ID()
Get Country Group To.- Specified by:
getC_CountryGroupTo_IDin interfaceI_C_Tax- Returns:
- Country Group To
-
setC_Country_ID
public void setC_Country_ID(int C_Country_ID)
Set Country.- Specified by:
setC_Country_IDin interfaceI_C_Tax- Parameters:
C_Country_ID- Country
-
getC_Country_ID
public int getC_Country_ID()
Get Country.- Specified by:
getC_Country_IDin interfaceI_C_Tax- Returns:
- Country
-
getC_Region
public I_C_Region getC_Region() throws RuntimeException
- Specified by:
getC_Regionin interfaceI_C_Tax- Throws:
RuntimeException
-
setC_Region_ID
public void setC_Region_ID(int C_Region_ID)
Set Region.- Specified by:
setC_Region_IDin interfaceI_C_Tax- Parameters:
C_Region_ID- Identifies a geographical Region
-
getC_Region_ID
public int getC_Region_ID()
Get Region.- Specified by:
getC_Region_IDin interfaceI_C_Tax- Returns:
- Identifies a geographical Region
-
getC_TaxCategory
public I_C_TaxCategory getC_TaxCategory() throws RuntimeException
- Specified by:
getC_TaxCategoryin interfaceI_C_Tax- Throws:
RuntimeException
-
setC_TaxCategory_ID
public void setC_TaxCategory_ID(int C_TaxCategory_ID)
Set Tax Category.- Specified by:
setC_TaxCategory_IDin interfaceI_C_Tax- Parameters:
C_TaxCategory_ID- Tax Category
-
getC_TaxCategory_ID
public int getC_TaxCategory_ID()
Get Tax Category.- Specified by:
getC_TaxCategory_IDin interfaceI_C_Tax- Returns:
- Tax Category
-
setC_Tax_ID
public void setC_Tax_ID(int C_Tax_ID)
Set Tax.- Specified by:
setC_Tax_IDin interfaceI_C_Tax- Parameters:
C_Tax_ID- Tax identifier
-
getC_Tax_ID
public int getC_Tax_ID()
Get Tax.- Specified by:
getC_Tax_IDin interfaceI_C_Tax- Returns:
- Tax identifier
-
getC_TaxProvider
public I_C_TaxProvider getC_TaxProvider() throws RuntimeException
- Specified by:
getC_TaxProviderin interfaceI_C_Tax- Throws:
RuntimeException
-
setC_TaxProvider_ID
public void setC_TaxProvider_ID(int C_TaxProvider_ID)
Set Tax Provider.- Specified by:
setC_TaxProvider_IDin interfaceI_C_Tax- Parameters:
C_TaxProvider_ID- Tax Provider
-
getC_TaxProvider_ID
public int getC_TaxProvider_ID()
Get Tax Provider.- Specified by:
getC_TaxProvider_IDin interfaceI_C_Tax- Returns:
- Tax Provider
-
setC_Tax_UU
public void setC_Tax_UU(String C_Tax_UU)
Set C_Tax_UU.- Specified by:
setC_Tax_UUin interfaceI_C_Tax- Parameters:
C_Tax_UU- C_Tax_UU
-
getC_Tax_UU
public String getC_Tax_UU()
Get C_Tax_UU.- Specified by:
getC_Tax_UUin interfaceI_C_Tax- Returns:
- C_Tax_UU
-
setDescription
public void setDescription(String Description)
Set Description.- Specified by:
setDescriptionin interfaceI_C_Tax- Parameters:
Description- Optional short description of the record
-
getDescription
public String getDescription()
Get Description.- Specified by:
getDescriptionin interfaceI_C_Tax- Returns:
- Optional short description of the record
-
setIsDefault
public void setIsDefault(boolean IsDefault)
Set Default.- Specified by:
setIsDefaultin interfaceI_C_Tax- Parameters:
IsDefault- Default value
-
isDefault
public boolean isDefault()
Get Default.
-
setIsDocumentLevel
public void setIsDocumentLevel(boolean IsDocumentLevel)
Set Document Level.- Specified by:
setIsDocumentLevelin interfaceI_C_Tax- Parameters:
IsDocumentLevel- Tax is calculated on document level (rather than line by line)
-
isDocumentLevel
public boolean isDocumentLevel()
Get Document Level.- Specified by:
isDocumentLevelin interfaceI_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:
setIsSalesTaxin interfaceI_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:
isSalesTaxin interfaceI_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:
setIsSummaryin interfaceI_C_Tax- Parameters:
IsSummary- This is a summary entity
-
isSummary
public boolean isSummary()
Get Summary Level.
-
setIsTaxExempt
public void setIsTaxExempt(boolean IsTaxExempt)
Set SO Tax exempt.- Specified by:
setIsTaxExemptin interfaceI_C_Tax- Parameters:
IsTaxExempt- Business partner is exempt from tax on sales
-
isTaxExempt
public boolean isTaxExempt()
Get SO Tax exempt.- Specified by:
isTaxExemptin interfaceI_C_Tax- Returns:
- Business partner is exempt from tax on sales
-
setName
public void setName(String Name)
Set Name.
-
getName
public String getName()
Get Name.
-
getKeyNamePair
public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
getParent_Tax
public I_C_Tax getParent_Tax() throws RuntimeException
- Specified by:
getParent_Taxin interfaceI_C_Tax- Throws:
RuntimeException
-
setParent_Tax_ID
public void setParent_Tax_ID(int Parent_Tax_ID)
Set Parent Tax.- Specified by:
setParent_Tax_IDin interfaceI_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_IDin interfaceI_C_Tax- Returns:
- Parent Tax indicates a tax that is made up of multiple taxes
-
setRate
public void setRate(BigDecimal Rate)
Set Rate.
-
getRate
public BigDecimal getRate()
Get Rate.
-
setRequiresTaxCertificate
public void setRequiresTaxCertificate(boolean RequiresTaxCertificate)
Set Requires Tax Certificate.- Specified by:
setRequiresTaxCertificatein interfaceI_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:
isRequiresTaxCertificatein interfaceI_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:
setSOPOTypein interfaceI_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:
getSOPOTypein interfaceI_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:
setTaxIndicatorin interfaceI_C_Tax- Parameters:
TaxIndicator- Short form for Tax to be printed on documents
-
getTaxIndicator
public String getTaxIndicator()
Get Tax Indicator.- Specified by:
getTaxIndicatorin interfaceI_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_IDin interfaceI_C_Tax- Parameters:
To_Country_ID- Receiving Country
-
getTo_Country_ID
public int getTo_Country_ID()
Get To.- Specified by:
getTo_Country_IDin interfaceI_C_Tax- Returns:
- Receiving Country
-
getTo_Region
public I_C_Region getTo_Region() throws RuntimeException
- Specified by:
getTo_Regionin interfaceI_C_Tax- Throws:
RuntimeException
-
setTo_Region_ID
public void setTo_Region_ID(int To_Region_ID)
Set To.- Specified by:
setTo_Region_IDin interfaceI_C_Tax- Parameters:
To_Region_ID- Receiving Region
-
getTo_Region_ID
public int getTo_Region_ID()
Get To.- Specified by:
getTo_Region_IDin interfaceI_C_Tax- Returns:
- Receiving Region
-
setValidFrom
public void setValidFrom(Timestamp ValidFrom)
Set Valid from.- Specified by:
setValidFromin interfaceI_C_Tax- Parameters:
ValidFrom- Valid from including this date (first day)
-
getValidFrom
public Timestamp getValidFrom()
Get Valid from.- Specified by:
getValidFromin interfaceI_C_Tax- Returns:
- Valid from including this date (first day)
-
-