ERP/2.50/Developers Guide/Database Model/org.openbravo.model.dataimport/I Tax
I_Tax
- Name:DataImportTax
- Classname:Tax
This table contains the following columns:
Name | Nullable | Data Type | Description |
I_Tax_ID | N | VARCHAR2(32) | null |
AD_Client_ID | Y | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | Y | VARCHAR2(32) | Organizational entity within client |
IsActive | Y | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | Y | DATE | The date that this record is completed. |
Createdby | Y | VARCHAR2(32) | User who created this records |
Updated | Y | DATE | x not implemented |
Updatedby | Y | VARCHAR2(32) | User who updated this records |
C_Tax_ID | Y | VARCHAR2(32) | The percentage of money requested by the government for this specified product or transaction. |
T_Name | Y | NVARCHAR2(60) | null |
T_Description | Y | NVARCHAR2(255) | null |
TaxIndicator | Y | VARCHAR2(5) | A fast method for finding a specific tax. |
ValidFrom | Y | DATE | A parameter stating the starting time of a specified request. |
IsSummary | Y | CHAR(1) | A means of grouping fields in order to view or hide additional information. |
Rate | Y | NUMBER | The percentage to be multiplied by the source to arrive at the tax or exchange amount. |
Parent_Tax_ID | Y | VARCHAR2(32) | Parent Tax indicates a tax that is made up of multiple taxes |
C_Country_ID | Y | VARCHAR2(32) | A state or a nation. |
C_Region_ID | Y | VARCHAR2(32) | An area of a specific country. |
To_Country_ID | Y | VARCHAR2(32) | The country receiving a shipment |
To_Region_ID | Y | VARCHAR2(32) | The state/province inside of a country receiving the shipment. |
IsTaxExempt | Y | CHAR(1) | A condition stating that for a specific case, taxes must not be applied. |
SOPOType | Y | VARCHAR2(60) | Sales Tax applies to sales situations, Purchase Tax to purchase situations |
Line | Y | NUMBER | A line stating the position of this request in the document. |
Cascade | Y | CHAR(1) | Any additional discount built upon the remaining total after applying previous discounts. |
C_TaxCategory_ID | Y | VARCHAR2(32) | A classification of tax options based on similar characteristics or attributes. |
TC_Name | Y | NVARCHAR2(60) | null |
TC_Description | Y | NVARCHAR2(255) | null |
TC_CommodityCode | Y | NVARCHAR2(20) | null |
C_BP_TaxCategory_ID | Y | VARCHAR2(32) | Bussines Partner Tax Category as a Vendor |
BPTC_Name | Y | NVARCHAR2(60) | null |
BPTC_Description | Y | NVARCHAR2(255) | null |
Processing | Y | CHAR(1) | A request to process the respective document or task. |
Processed | Y | CHAR(1) | A confirmation that the associated documents or requests are processed. |
I_ErrorMsg | Y | NVARCHAR2(2000) | A message that appears when errors occur during the importing process. |
I_IsImported | Y | CHAR(1) | A indication that the desired process has been completed successfully. |
Parent_Name | Y | NVARCHAR2(255) | null |
From_Code_Country | Y | NVARCHAR2(60) | null |
TO_Code_Country | Y | NVARCHAR2(60) | null |
From_Code_Region | Y | NVARCHAR2(60) | null |
TO_Code_Region | Y | NVARCHAR2(60) | null |
Other Info
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- I_TAX_KEY
Columns
I_Tax_ID
- Physical column name: I_Tax_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_ORG_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Tax
- Physical column name: C_Tax_ID
- Property Name: tax
- Reference: TableDir
Foreign key column to C_Tax table, (column: C_Tax_ID)
Tax Name
- Physical column name: T_Name
- Property Name: taxName
- Reference: String
- This column is part of the table's identifier
Tax Description
- Physical column name: T_Description
- Property Name: taxDescription
- Reference: Text
Tax Search Key
The Tax Indicator identifies the short name that will print on documents referencing this tax.
- Physical column name: TaxIndicator
- Property Name: taxSearchKey
- Reference: String
Valid from Date
The Valid From date indicates the first day of a date range
- Physical column name: ValidFrom
- Property Name: validFromDate
- Reference: Date
Summary Level
A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.
- Physical column name: IsSummary
- Property Name: summaryLevel
- Reference: YesNo
Rate
The Rate indicates the percentage to be multiplied by the source to arrive at the tax or exchange amount.
- Physical column name: Rate
- Property Name: rate
- Reference: Number
Parent Tax Rate
- Physical column name: Parent_Tax_ID
- Property Name: parentTaxRate
- Reference: Table
Foreign key column to C_Tax table, (column: C_Tax_ID)
Reference Table C_Tax Parent is NULL With the following where clause:
C_Tax.Parent_Tax_ID IS NULL
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
Foreign key column to C_Country table, (column: C_Country_ID)
Region
- Physical column name: C_Region_ID
- Property Name: region
- Reference: TableDir
Foreign key column to C_Region table, (column: C_Region_ID)
Destination Country
- Physical column name: To_Country_ID
- Property Name: destinationCountry
- Reference: Table
Foreign key column to C_Country table, (column: C_Country_ID)
Reference Table C_Country
Destination Region
- Physical column name: To_Region_ID
- Property Name: destinationRegion
- Reference: Table
Foreign key column to C_Region table, (column: C_Region_ID)
Reference Table C_Region
Tax Exempt
If a business partner is exempt from tax, the exempt tax rate is used. For this, you need to set up a tax rate with a 0% rate and indicate that this is your tax exempt rate. This is required for tax reporting, so that you can track tax exempt transactions.
- Physical column name: IsTaxExempt
- Property Name: taxExempt
- Reference: YesNo
Sales/Purchase Type
Sales Tax: charged when selling - examples: Sales Tax, Output VAT (payable)Purchase Tax: tax charged when purchasing - examples: Use Tax, Input VAT (receivable)
- Physical column name: SOPOType
- Property Name: salesPurchaseType
- Reference: List
List values: C_Tax SPPOType
The allowed values for this list are:
- B (Both)
- P (Purchase Tax)
- S (Sales Tax)
Line No.
Indicates the unique line for a document. It will also control the display order of the lines within a document.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
Cascade
Indicates if it is applied in an accumulative way or if it is applied to the base amount.
- Physical column name: Cascade
- Property Name: cascade
- Reference: YesNo
Tax Category
- Physical column name: C_TaxCategory_ID
- Property Name: taxCategory
- Reference: TableDir
Foreign key column to C_TaxCategory table, (column: C_TaxCategory_ID)
Tax Category Name
- Physical column name: TC_Name
- Property Name: taxCategoryName
- Reference: String
Tax Cat. Description
- Physical column name: TC_Description
- Property Name: taxCatDescription
- Reference: Text
Commodity Code
- Physical column name: TC_CommodityCode
- Property Name: commodityCode
- Reference: String
Business Partner Tax Category
- Physical column name: C_BP_TaxCategory_ID
- Property Name: businessPartnerTaxCategory
- Reference: TableDir
Foreign key column to C_BP_TaxCategory table, (column: C_BP_TaxCategory_ID)
BP Tax Category Name
- Physical column name: BPTC_Name
- Property Name: bPTaxCategoryName
- Reference: String
BP Tax Category Description
- Physical column name: BPTC_Description
- Property Name: bPTaxCategoryDescription
- Reference: Text
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Import Error Message
The Import Error Message displays any error messages generated during the import process.
- Physical column name: I_ErrorMsg
- Property Name: importErrorMessage
- Reference: Text
Import Process Complete
The Imported check box indicates if this import has been processed.
- Physical column name: I_IsImported
- Property Name: importProcessComplete
- Reference: YesNo
- Default value: N
Parent Tax Name
- Physical column name: Parent_Name
- Property Name: parentTaxName
- Reference: String
Country from Code
- Physical column name: From_Code_Country
- Property Name: countryFromCode
- Reference: String
Country to Code
- Physical column name: TO_Code_Country
- Property Name: countryToCode
- Reference: String
Region from Code
- Physical column name: From_Code_Region
- Property Name: regionFromCode
- Reference: String
Region to Code
- Physical column name: TO_Code_Region
- Property Name: regionToCode
- Reference: String