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
Generated Model for C_Tax
- Version:
- Release 11 - $Id$
- Author:
- iDempiere (generated)
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
SOPOType AD_Reference_ID=287static final String
Both = Bstatic final String
Purchase Tax = Pstatic final String
Sales Tax = Sstatic final int
TaxPostingIndicator AD_Reference_ID=200160static final String
Distribute Tax with Relevant Expense = 1static final String
Separate Tax Posting = 0Fields 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, UUID_NEW_RECORD, 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_TaxPostingIndicator, COLUMNNAME_To_Country_ID, COLUMNNAME_To_Region_ID, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_ValidFrom, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionX_C_Tax
(Properties ctx, int C_Tax_ID, String trxName) Standard ConstructorX_C_Tax
(Properties ctx, int C_Tax_ID, String trxName, String... virtualColumns) Standard ConstructorX_C_Tax
(Properties ctx, String C_Tax_UU, String trxName) Standard ConstructorX_C_Tax
(Properties ctx, String C_Tax_UU, String trxName, String... virtualColumns) Standard ConstructorX_C_Tax
(Properties ctx, ResultSet rs, String trxName) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected int
AccessLevelint
Get Rule.int
Get Country.int
Get Country Group From.int
Get Country Group To.int
Get Region.int
Get Tax.Get C_Tax_UU.int
Get Tax Category.int
Get Tax Provider.Get Description.Get Record ID/ColumnNamegetName()
Get Name.int
Get Parent Tax.getRate()
Get Rate.Get SO/PO Type.Get Tax Indicator.Get Posting Indicator.int
Get To.int
Get To.Get Valid from.protected POInfo
initPO
(Properties ctx) Load Meta Databoolean
Get Default.boolean
Get Document Level.boolean
Get Requires Tax Certificate.boolean
Get Sales Tax.boolean
Get Summary Level.boolean
Get SO Tax exempt.void
setAD_Rule_ID
(int AD_Rule_ID) Set Rule.void
setC_Country_ID
(int C_Country_ID) Set Country.void
setC_CountryGroupFrom_ID
(int C_CountryGroupFrom_ID) Set Country Group From.void
setC_CountryGroupTo_ID
(int C_CountryGroupTo_ID) Set Country Group To.void
setC_Region_ID
(int C_Region_ID) Set Region.void
setC_Tax_ID
(int C_Tax_ID) Set Tax.void
setC_Tax_UU
(String C_Tax_UU) Set C_Tax_UU.void
setC_TaxCategory_ID
(int C_TaxCategory_ID) Set Tax Category.void
setC_TaxProvider_ID
(int C_TaxProvider_ID) Set Tax Provider.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 SO Tax exempt.void
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
setTaxPostingIndicator
(String TaxPostingIndicator) Set Posting 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.toString()
String representationMethods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, buildInsertSQL, 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_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, 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, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, 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, toInsertSQL, 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 Details
-
SOPOTYPE_AD_Reference_ID
public static final int SOPOTYPE_AD_Reference_IDSOPOType AD_Reference_ID=287- See Also:
-
SOPOTYPE_Both
Both = B- See Also:
-
SOPOTYPE_PurchaseTax
Purchase Tax = P- See Also:
-
SOPOTYPE_SalesTax
Sales Tax = S- See Also:
-
TAXPOSTINGINDICATOR_AD_Reference_ID
public static final int TAXPOSTINGINDICATOR_AD_Reference_IDTaxPostingIndicator AD_Reference_ID=200160- See Also:
-
TAXPOSTINGINDICATOR_SeparateTaxPosting
Separate Tax Posting = 0- See Also:
-
TAXPOSTINGINDICATOR_DistributeTaxWithRelevantExpense
Distribute Tax with Relevant Expense = 1- See Also:
-
-
Constructor Details
-
X_C_Tax
Standard Constructor -
X_C_Tax
Standard Constructor -
X_C_Tax
Standard Constructor -
X_C_Tax
Standard Constructor -
X_C_Tax
Load Constructor
-
-
Method Details
-
get_AccessLevel
protected int get_AccessLevel()AccessLevel- Specified by:
get_AccessLevel
in classPO
- Returns:
- 2 - Client
-
initPO
Load Meta Data -
toString
Description copied from class:PO
String representation -
getAD_Rule
- Specified by:
getAD_Rule
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setAD_Rule_ID
public void setAD_Rule_ID(int AD_Rule_ID) Set Rule.- Specified by:
setAD_Rule_ID
in interfaceI_C_Tax
- Parameters:
AD_Rule_ID
- Rule
-
getAD_Rule_ID
public int getAD_Rule_ID()Get Rule.- Specified by:
getAD_Rule_ID
in interfaceI_C_Tax
- Returns:
- Rule
-
getC_CountryGroupFrom
- Specified by:
getC_CountryGroupFrom
in 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_ID
in 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_ID
in interfaceI_C_Tax
- Returns:
- Country Group From
-
getC_CountryGroupTo
- Specified by:
getC_CountryGroupTo
in 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_ID
in 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_ID
in 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_ID
in interfaceI_C_Tax
- Parameters:
C_Country_ID
- Country
-
getC_Country_ID
public int getC_Country_ID()Get Country.- Specified by:
getC_Country_ID
in interfaceI_C_Tax
- Returns:
- Country
-
getC_Region
- Specified by:
getC_Region
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setC_Region_ID
public void setC_Region_ID(int C_Region_ID) Set Region.- Specified by:
setC_Region_ID
in 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_ID
in interfaceI_C_Tax
- Returns:
- Identifies a geographical Region
-
getC_TaxCategory
- Specified by:
getC_TaxCategory
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setC_TaxCategory_ID
public void setC_TaxCategory_ID(int C_TaxCategory_ID) Set Tax Category.- Specified by:
setC_TaxCategory_ID
in interfaceI_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 interfaceI_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 interfaceI_C_Tax
- Parameters:
C_Tax_ID
- Tax identifier
-
getC_Tax_ID
public int getC_Tax_ID()Get Tax.- Specified by:
getC_Tax_ID
in interfaceI_C_Tax
- Returns:
- Tax identifier
-
getC_TaxProvider
- Specified by:
getC_TaxProvider
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setC_TaxProvider_ID
public void setC_TaxProvider_ID(int C_TaxProvider_ID) Set Tax Provider.- Specified by:
setC_TaxProvider_ID
in interfaceI_C_Tax
- Parameters:
C_TaxProvider_ID
- Tax Provider
-
getC_TaxProvider_ID
public int getC_TaxProvider_ID()Get Tax Provider.- Specified by:
getC_TaxProvider_ID
in interfaceI_C_Tax
- Returns:
- Tax Provider
-
setC_Tax_UU
Set C_Tax_UU.- Specified by:
setC_Tax_UU
in interfaceI_C_Tax
- Parameters:
C_Tax_UU
- C_Tax_UU
-
getC_Tax_UU
Get C_Tax_UU.- Specified by:
getC_Tax_UU
in interfaceI_C_Tax
- Returns:
- C_Tax_UU
-
setDescription
Set Description.- Specified by:
setDescription
in interfaceI_C_Tax
- Parameters:
Description
- Optional short description of the record
-
getDescription
Get Description.- Specified by:
getDescription
in interfaceI_C_Tax
- Returns:
- Optional short description of the record
-
setIsDefault
public void setIsDefault(boolean IsDefault) Set Default.- Specified by:
setIsDefault
in interfaceI_C_Tax
- Parameters:
IsDefault
- Default value
-
isDefault
public boolean isDefault()Get Default. -
setIsDocumentLevel
public void setIsDocumentLevel(boolean IsDocumentLevel) Set Document Level.- Specified by:
setIsDocumentLevel
in 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:
isDocumentLevel
in 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:
setIsSalesTax
in 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:
isSalesTax
in 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:
setIsSummary
in 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:
setIsTaxExempt
in interfaceI_C_Tax
- Parameters:
IsTaxExempt
- Business partner is exempt from tax on sales
-
isTaxExempt
public boolean isTaxExempt()Get SO Tax exempt.- Specified by:
isTaxExempt
in interfaceI_C_Tax
- Returns:
- Business partner is exempt from tax on sales
-
setName
Set Name. -
getName
Get Name. -
getKeyNamePair
Get Record ID/ColumnName- Returns:
- ID/ColumnName pair
-
getParent_Tax
- Specified by:
getParent_Tax
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setParent_Tax_ID
public void setParent_Tax_ID(int Parent_Tax_ID) Set Parent Tax.- Specified by:
setParent_Tax_ID
in 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_ID
in interfaceI_C_Tax
- Returns:
- Parent Tax indicates a tax that is made up of multiple taxes
-
setRate
Set Rate. -
getRate
Get Rate. -
setRequiresTaxCertificate
public void setRequiresTaxCertificate(boolean RequiresTaxCertificate) Set Requires Tax Certificate.- Specified by:
setRequiresTaxCertificate
in 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:
isRequiresTaxCertificate
in interfaceI_C_Tax
- Returns:
- This tax rate requires the Business Partner to be tax exempt
-
setSOPOType
Set SO/PO Type.- Specified by:
setSOPOType
in interfaceI_C_Tax
- Parameters:
SOPOType
- Sales Tax applies to sales situations, Purchase Tax to purchase situations
-
getSOPOType
Get SO/PO Type.- Specified by:
getSOPOType
in interfaceI_C_Tax
- Returns:
- Sales Tax applies to sales situations, Purchase Tax to purchase situations
-
setTaxIndicator
Set Tax Indicator.- Specified by:
setTaxIndicator
in interfaceI_C_Tax
- Parameters:
TaxIndicator
- Short form for Tax to be printed on documents
-
getTaxIndicator
Get Tax Indicator.- Specified by:
getTaxIndicator
in interfaceI_C_Tax
- Returns:
- Short form for Tax to be printed on documents
-
setTaxPostingIndicator
Set Posting Indicator.- Specified by:
setTaxPostingIndicator
in interfaceI_C_Tax
- Parameters:
TaxPostingIndicator
- Type of input tax (deductible and non deductible)
-
getTaxPostingIndicator
Get Posting Indicator.- Specified by:
getTaxPostingIndicator
in interfaceI_C_Tax
- Returns:
- Type of input tax (deductible and non deductible)
-
setTo_Country_ID
public void setTo_Country_ID(int To_Country_ID) Set To.- Specified by:
setTo_Country_ID
in interfaceI_C_Tax
- Parameters:
To_Country_ID
- Receiving Country
-
getTo_Country_ID
public int getTo_Country_ID()Get To.- Specified by:
getTo_Country_ID
in interfaceI_C_Tax
- Returns:
- Receiving Country
-
getTo_Region
- Specified by:
getTo_Region
in interfaceI_C_Tax
- Throws:
RuntimeException
-
setTo_Region_ID
public void setTo_Region_ID(int To_Region_ID) Set To.- Specified by:
setTo_Region_ID
in interfaceI_C_Tax
- Parameters:
To_Region_ID
- Receiving Region
-
getTo_Region_ID
public int getTo_Region_ID()Get To.- Specified by:
getTo_Region_ID
in interfaceI_C_Tax
- Returns:
- Receiving Region
-
setValidFrom
Set Valid from.- Specified by:
setValidFrom
in interfaceI_C_Tax
- Parameters:
ValidFrom
- Valid from including this date (first day)
-
getValidFrom
Get Valid from.- Specified by:
getValidFrom
in interfaceI_C_Tax
- Returns:
- Valid from including this date (first day)
-