Compiere 3.1

org.compiere.model
Class X_C_Tax

java.lang.Object
  extended by org.compiere.framework.PO
      extended by org.compiere.model.X_C_Tax
All Implemented Interfaces:
Serializable, Cloneable, Comparator<PO>, Evaluatee
Direct Known Subclasses:
MTax

public class X_C_Tax
extends PO

Generated Model for C_Tax

Version:
Release 3.1.0 - $Id$
Author:
Jorg Janke (generated)
See Also:
Serialized Form

Field Summary
protected  BigDecimal accessLevel
           
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
protected static KeyNamePair Model
           
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 Table_ID
          AD_Table_ID=261
static String Table_Name
          TableName=C_Tax
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
static long updatedMS
          Last Updated Timestamp 2008-06-10 15:12:06.0
 
Fields inherited from class org.compiere.framework.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Constructor Summary
X_C_Tax(Ctx ctx, int C_Tax_ID, String trxName)
          Standard Constructor
X_C_Tax(Ctx ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  int get_AccessLevel()
          AccessLevel
 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.
 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(Ctx 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 isSOPOTypeValid(String test)
          Is test a valid value.
 boolean isSummary()
          Get Summary Level.
 boolean isTaxExempt()
          Get Tax exempt.
 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()
          Info
 
Methods inherited from class org.compiere.framework.PO
addAttachment, addAttachment, addError, afterDelete, afterSave, beforeDelete, beforeSave, compare, convertToBigDecimal, convertToBoolean, convertToInt, convertToTimestamp, copy, copyValues, copyValues, createAttachment, delete_Accounting, delete, delete, dump, dump, equals, get_ChangeVO, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_EntityType, get_HashMap, get_ID, get_IDOld, get_Info, get_KeyColumns, get_Logger, get_Table_ID, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_ValuesAsString, get_WhereClause, get_xmlDocument, get_xmlString, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getVO, hashCode, insert_Accounting, is_Changed, is_KeyColumn, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveNew_getID, saveNewInsertSQL, saveNewSpecial, saveUpdate, set_ChangeVO, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueString, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setContext, setCtx, setDocWorkflowMgr, setIsActive, setStandardDefaults, setUpdateable, setUpdatedBy, toStringX, unlock, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

updatedMS

public static final long updatedMS
Last Updated Timestamp 2008-06-10 15:12:06.0

See Also:
Constant Field Values

Table_ID

public static final int Table_ID
AD_Table_ID=261

See Also:
Constant Field Values

Table_Name

public static final String Table_Name
TableName=C_Tax

See Also:
Constant Field Values

Model

protected static KeyNamePair Model

accessLevel

protected BigDecimal accessLevel

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_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

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(Ctx ctx,
               int C_Tax_ID,
               String trxName)
Standard Constructor

Parameters:
ctx - context
C_Tax_ID - id
trxName - transaction

X_C_Tax

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

Parameters:
ctx - context
rs - result set
trxName - transaction
Method Detail

get_AccessLevel

protected int get_AccessLevel()
AccessLevel

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

initPO

protected POInfo initPO(Ctx ctx)
Load Meta Data

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

toString

public String toString()
Info

Overrides:
toString in class PO
Returns:
info

setC_Country_ID

public void setC_Country_ID(int C_Country_ID)
Set Country.

Parameters:
C_Country_ID - Country

getC_Country_ID

public int getC_Country_ID()
Get Country.

Returns:
Country

setC_Region_ID

public void setC_Region_ID(int C_Region_ID)
Set Region.

Parameters:
C_Region_ID - Identifies a geographical Region

getC_Region_ID

public int getC_Region_ID()
Get Region.

Returns:
Identifies a geographical Region

setC_TaxCategory_ID

public void setC_TaxCategory_ID(int C_TaxCategory_ID)
Set Tax Category.

Parameters:
C_TaxCategory_ID - Tax Category

getC_TaxCategory_ID

public int getC_TaxCategory_ID()
Get Tax Category.

Returns:
Tax Category

setC_Tax_ID

public void setC_Tax_ID(int C_Tax_ID)
Set Tax.

Parameters:
C_Tax_ID - Tax identifier

getC_Tax_ID

public int getC_Tax_ID()
Get Tax.

Returns:
Tax identifier

setDescription

public void setDescription(String Description)
Set Description.

Parameters:
Description - Optional short description of the record

getDescription

public String getDescription()
Get Description.

Returns:
Optional short description of the record

setIsDefault

public void setIsDefault(boolean IsDefault)
Set Default.

Parameters:
IsDefault - Default value

isDefault

public boolean isDefault()
Get Default.

Returns:
Default value

setIsDocumentLevel

public void setIsDocumentLevel(boolean IsDocumentLevel)
Set Document Level.

Parameters:
IsDocumentLevel - Tax is calculated on document level (rather than line by line)

isDocumentLevel

public boolean isDocumentLevel()
Get Document Level.

Returns:
Tax is calculated on document level (rather than line by line)

setIsSalesTax

public void setIsSalesTax(boolean IsSalesTax)
Set Sales Tax.

Parameters:
IsSalesTax - This is a sales tax (i.e. not a value added tax)

isSalesTax

public boolean isSalesTax()
Get Sales Tax.

Returns:
This is a sales tax (i.e. not a value added tax)

setIsSummary

public void setIsSummary(boolean IsSummary)
Set Summary Level.

Parameters:
IsSummary - This is a summary entity

isSummary

public boolean isSummary()
Get Summary Level.

Returns:
This is a summary entity

setIsTaxExempt

public void setIsTaxExempt(boolean IsTaxExempt)
Set Tax exempt.

Parameters:
IsTaxExempt - Business partner is exempt from tax

isTaxExempt

public boolean isTaxExempt()
Get Tax exempt.

Returns:
Business partner is exempt from tax

setName

public void setName(String Name)
Set Name.

Parameters:
Name - Alphanumeric identifier of the entity

getName

public String getName()
Get Name.

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.

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.

Returns:
Parent Tax indicates a tax that is made up of multiple taxes

setRate

public void setRate(BigDecimal Rate)
Set Rate.

Parameters:
Rate - Rate or Tax or Exchange

getRate

public BigDecimal getRate()
Get Rate.

Returns:
Rate or Tax or Exchange

setRequiresTaxCertificate

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

Parameters:
RequiresTaxCertificate - This tax rate requires the Business Partner to be tax exempt

isRequiresTaxCertificate

public boolean isRequiresTaxCertificate()
Get Requires Tax Certificate.

Returns:
This tax rate requires the Business Partner to be tax exempt

isSOPOTypeValid

public boolean isSOPOTypeValid(String test)
Is test a valid value.

Parameters:
test - testvalue
Returns:
true if valid

setSOPOType

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

Parameters:
SOPOType - Sales Tax applies to sales situations, Purchase Tax to purchase situations

getSOPOType

public String getSOPOType()
Get SO/PO Type.

Returns:
Sales Tax applies to sales situations, Purchase Tax to purchase situations

setTaxIndicator

public void setTaxIndicator(String TaxIndicator)
Set Tax Indicator.

Parameters:
TaxIndicator - Short form for Tax to be printed on documents

getTaxIndicator

public String getTaxIndicator()
Get Tax Indicator.

Returns:
Short form for Tax to be printed on documents

setTo_Country_ID

public void setTo_Country_ID(int To_Country_ID)
Set To.

Parameters:
To_Country_ID - Receiving Country

getTo_Country_ID

public int getTo_Country_ID()
Get To.

Returns:
Receiving Country

setTo_Region_ID

public void setTo_Region_ID(int To_Region_ID)
Set To.

Parameters:
To_Region_ID - Receiving Region

getTo_Region_ID

public int getTo_Region_ID()
Get To.

Returns:
Receiving Region

setValidFrom

public void setValidFrom(Timestamp ValidFrom)
Set Valid from.

Parameters:
ValidFrom - Valid from including this date (first day)

getValidFrom

public Timestamp getValidFrom()
Get Valid from.

Returns:
Valid from including this date (first day)

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.