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 int
SOPOTYPE_AD_Reference_ID
SOPOType AD_Reference_ID=287static String
SOPOTYPE_Both
Both = Bstatic String
SOPOTYPE_PurchaseTax
Purchase Tax = Pstatic String
SOPOTYPE_SalesTax
Sales 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 int
get_AccessLevel()
AccessLevelI_AD_Rule
getAD_Rule()
int
getAD_Rule_ID()
Get Rule.int
getC_Country_ID()
Get Country.I_C_CountryGroup
getC_CountryGroupFrom()
int
getC_CountryGroupFrom_ID()
Get Country Group From.I_C_CountryGroup
getC_CountryGroupTo()
int
getC_CountryGroupTo_ID()
Get Country Group To.I_C_Region
getC_Region()
int
getC_Region_ID()
Get Region.int
getC_Tax_ID()
Get Tax.String
getC_Tax_UU()
Get C_Tax_UU.I_C_TaxCategory
getC_TaxCategory()
int
getC_TaxCategory_ID()
Get Tax Category.I_C_TaxProvider
getC_TaxProvider()
int
getC_TaxProvider_ID()
Get Tax Provider.String
getDescription()
Get Description.KeyNamePair
getKeyNamePair()
Get Record ID/ColumnNameString
getName()
Get Name.I_C_Tax
getParent_Tax()
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.I_C_Region
getTo_Region()
int
getTo_Region_ID()
Get To.Timestamp
getValidFrom()
Get Valid from.protected POInfo
initPO(Properties ctx)
Load Meta Databoolean
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 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
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, 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_AccessLevel
in 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_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
public I_C_CountryGroup getC_CountryGroupFrom() throws RuntimeException
- 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
public I_C_CountryGroup getC_CountryGroupTo() throws RuntimeException
- 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
public I_C_Region getC_Region() throws RuntimeException
- 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
public I_C_TaxCategory getC_TaxCategory() throws RuntimeException
- 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
public I_C_TaxProvider getC_TaxProvider() throws RuntimeException
- 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
public void setC_Tax_UU(String C_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
public String getC_Tax_UU()
Get C_Tax_UU.- Specified by:
getC_Tax_UU
in interfaceI_C_Tax
- Returns:
- C_Tax_UU
-
setDescription
public void setDescription(String Description)
Set Description.- Specified by:
setDescription
in interfaceI_C_Tax
- Parameters:
Description
- Optional short description of the record
-
getDescription
public String 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
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_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
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:
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
public void setSOPOType(String SOPOType)
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
public String 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
public void setTaxIndicator(String TaxIndicator)
Set Tax Indicator.- Specified by:
setTaxIndicator
in interfaceI_C_Tax
- Parameters:
TaxIndicator
- Short form for Tax to be printed on documents
-
getTaxIndicator
public String getTaxIndicator()
Get Tax Indicator.- Specified by:
getTaxIndicator
in 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_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
public I_C_Region getTo_Region() throws RuntimeException
- 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
public void setValidFrom(Timestamp ValidFrom)
Set Valid from.- Specified by:
setValidFrom
in interfaceI_C_Tax
- Parameters:
ValidFrom
- Valid from including this date (first day)
-
getValidFrom
public Timestamp getValidFrom()
Get Valid from.- Specified by:
getValidFrom
in interfaceI_C_Tax
- Returns:
- Valid from including this date (first day)
-
-