View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/2.50/Developers Guide/Reference/Entity Model/DataImportTax

DataImportTax

To the database table (I_Tax) of this entity.

Back to the entity model.

Properties

Note:

Property Column Constraints Type Description
id* I_Tax_ID Mandatory
Max Length: 32
java.lang.String
client AD_Client_ID ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active IsActive java.lang.Boolean 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.

creationDate Created java.util.Date The Created field indicates the date that this record was created.
createdBy Createdby ADUser The Created By field indicates the user who created this record.
updated Updated java.util.Date The Updated field indicates the date that this record was updated.
updatedBy Updatedby ADUser The Updated By field indicates the user who updated this record.
tax C_Tax_ID FinancialMgmtTaxRate The Tax indicates the type of tax for this document line.
taxName# T_Name Max Length: 60 java.lang.String
taxDescription T_Description Max Length: 255 java.lang.String
taxSearchKey TaxIndicator Max Length: 5 java.lang.String The Tax Indicator identifies the short name that will print on documents referencing this tax.
validFromDate ValidFrom java.util.Date The Valid From date indicates the first day of a date range
summaryLevel IsSummary java.lang.Boolean 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.
rate Rate java.math.BigDecimal The Rate indicates the percentage to be multiplied by the source to arrive at the tax or exchange amount.
parentTaxRate Parent_Tax_ID FinancialMgmtTaxRate The Parent Tax indicates a tax that is a reference for multiple taxes. This allows you to charge multiple taxes on a document by entering the Parent Tax
country C_Country_ID Country The Country defines a Country. Each Country must be defined before it can be used in any document.
region C_Region_ID Region The Region identifies a unique Region for this Country.
destinationCountry To_Country_ID Country The To Country indicates the receiving country on a document
destinationRegion To_Region_ID Region The To Region indicates the receiving region on a document
taxExempt IsTaxExempt java.lang.Boolean 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.
salesPurchaseType SOPOType Max Length: 60 java.lang.String Sales Tax: charged when selling - examples: Sales Tax, Output VAT (payable)Purchase Tax: tax charged when purchasing - examples: Use Tax, Input VAT (receivable)
lineNo Line java.lang.Long Indicates the unique line for a document. It will also control the display order of the lines within a document.
cascade Cascade java.lang.Boolean Indicates if it is applied in an accumulative way or if it is applied to the base amount.
taxCategory C_TaxCategory_ID FinancialMgmtTaxCategory The Tax Category provides a method of grouping similar taxes. For example, Sales Tax or Value Added Tax.
taxCategoryName TC_Name Max Length: 60 java.lang.String
taxCatDescription TC_Description Max Length: 255 java.lang.String
commodityCode TC_CommodityCode Max Length: 20 java.lang.String
businessPartnerTaxCategory C_BP_TaxCategory_ID BusinessPartnerTaxCategory Bussines Partner Tax Category is a category defined for applying default taxes to procurement transactions.
bPTaxCategoryName BPTC_Name Max Length: 60 java.lang.String
bPTaxCategoryDescription BPTC_Description Max Length: 255 java.lang.String
processNow Processing java.lang.Boolean When this field is set as 'Y' a process is being performed on this record.
processed Processed java.lang.Boolean The Processed checkbox indicates that a document has been processed.
importErrorMessage I_ErrorMsg Max Length: 2000 java.lang.String The Import Error Message displays any error messages generated during the import process.
importProcessComplete I_IsImported java.lang.Boolean The Imported check box indicates if this import has been processed.
parentTaxName Parent_Name Max Length: 255 java.lang.String
countryFromCode From_Code_Country Max Length: 60 java.lang.String
countryToCode TO_Code_Country Max Length: 60 java.lang.String
regionFromCode From_Code_Region Max Length: 60 java.lang.String
regionToCode TO_Code_Region Max Length: 60 java.lang.String

Java Entity Class

 
/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package org.openbravo.model.dataimport;
 
import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.businesspartner.TaxCategory;
import org.openbravo.model.common.enterprise.Organization;
import org.openbravo.model.common.geography.Country;
import org.openbravo.model.common.geography.Region;
import org.openbravo.model.financialmgmt.tax.TaxRate;
 
import java.lang.Boolean;
import java.lang.Long;
import java.lang.String;
 
import java.math.BigDecimal;
 
import java.util.Date;
 
/**
 * Entity class for entity DataImportTax (stored in table I_Tax).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class Tax extends BaseOBObject implements Traceable, ClientEnabled,
    OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "I_Tax";
    public static final String DataImportTax = "DataImportTax";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_TAX = "tax";
    public static final String PROPERTY_TAXNAME = "taxName";
    public static final String PROPERTY_TAXDESCRIPTION = "taxDescription";
    public static final String PROPERTY_TAXSEARCHKEY = "taxSearchKey";
    public static final String PROPERTY_VALIDFROMDATE = "validFromDate";
    public static final String PROPERTY_SUMMARYLEVEL = "summaryLevel";
    public static final String PROPERTY_RATE = "rate";
    public static final String PROPERTY_PARENTTAXRATE = "parentTaxRate";
    public static final String PROPERTY_COUNTRY = "country";
    public static final String PROPERTY_REGION = "region";
    public static final String PROPERTY_DESTINATIONCOUNTRY =
        "destinationCountry";
    public static final String PROPERTY_DESTINATIONREGION = "destinationRegion";
    public static final String PROPERTY_TAXEXEMPT = "taxExempt";
    public static final String PROPERTY_SALESPURCHASETYPE = "salesPurchaseType";
    public static final String PROPERTY_LINENO = "lineNo";
    public static final String PROPERTY_CASCADE = "cascade";
    public static final String PROPERTY_TAXCATEGORY = "taxCategory";
    public static final String PROPERTY_TAXCATEGORYNAME = "taxCategoryName";
    public static final String PROPERTY_TAXCATDESCRIPTION = "taxCatDescription";
    public static final String PROPERTY_COMMODITYCODE = "commodityCode";
    public static final String PROPERTY_BUSINESSPARTNERTAXCATEGORY =
        "businessPartnerTaxCategory";
    public static final String PROPERTY_BPTAXCATEGORYNAME = "bPTaxCategoryName";
    public static final String PROPERTY_BPTAXCATEGORYDESCRIPTION =
        "bPTaxCategoryDescription";
    public static final String PROPERTY_PROCESSNOW = "processNow";
    public static final String PROPERTY_PROCESSED = "processed";
    public static final String PROPERTY_IMPORTERRORMESSAGE =
        "importErrorMessage";
    public static final String PROPERTY_IMPORTPROCESSCOMPLETE =
        "importProcessComplete";
    public static final String PROPERTY_PARENTTAXNAME = "parentTaxName";
    public static final String PROPERTY_COUNTRYFROMCODE = "countryFromCode";
    public static final String PROPERTY_COUNTRYTOCODE = "countryToCode";
    public static final String PROPERTY_REGIONFROMCODE = "regionFromCode";
    public static final String PROPERTY_REGIONTOCODE = "regionToCode";
 
    public Tax() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_SUMMARYLEVEL, false);
        setDefaultValue(PROPERTY_TAXEXEMPT, false);
        setDefaultValue(PROPERTY_CASCADE, false);
        setDefaultValue(PROPERTY_PROCESSNOW, false);
        setDefaultValue(PROPERTY_PROCESSED, false);
        setDefaultValue(PROPERTY_IMPORTPROCESSCOMPLETE, false);
    }
 
    @Override
    public String getEntityName() {
        return DataImportTax;
    }
 
    public String getId() {
        return (String) get(PROPERTY_ID);
    }
 
    public void setId(String id) {
        set(PROPERTY_ID, id);
    }
 
    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }
 
    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }
 
    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }
 
    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }
 
    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }
 
    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }
 
    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }
 
    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }
 
    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }
 
    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }
 
    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }
 
    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }
 
    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }
 
    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }
 
    public TaxRate getTax() {
        return (TaxRate) get(PROPERTY_TAX);
    }
 
    public void setTax(TaxRate tax) {
        set(PROPERTY_TAX, tax);
    }
 
    public String getTaxName() {
        return (String) get(PROPERTY_TAXNAME);
    }
 
    public void setTaxName(String taxName) {
        set(PROPERTY_TAXNAME, taxName);
    }
 
    public String getTaxDescription() {
        return (String) get(PROPERTY_TAXDESCRIPTION);
    }
 
    public void setTaxDescription(String taxDescription) {
        set(PROPERTY_TAXDESCRIPTION, taxDescription);
    }
 
    public String getTaxSearchKey() {
        return (String) get(PROPERTY_TAXSEARCHKEY);
    }
 
    public void setTaxSearchKey(String taxSearchKey) {
        set(PROPERTY_TAXSEARCHKEY, taxSearchKey);
    }
 
    public Date getValidFromDate() {
        return (Date) get(PROPERTY_VALIDFROMDATE);
    }
 
    public void setValidFromDate(Date validFromDate) {
        set(PROPERTY_VALIDFROMDATE, validFromDate);
    }
 
    public Boolean isSummaryLevel() {
        return (Boolean) get(PROPERTY_SUMMARYLEVEL);
    }
 
    public void setSummaryLevel(Boolean summaryLevel) {
        set(PROPERTY_SUMMARYLEVEL, summaryLevel);
    }
 
    public BigDecimal getRate() {
        return (BigDecimal) get(PROPERTY_RATE);
    }
 
    public void setRate(BigDecimal rate) {
        set(PROPERTY_RATE, rate);
    }
 
    public TaxRate getParentTaxRate() {
        return (TaxRate) get(PROPERTY_PARENTTAXRATE);
    }
 
    public void setParentTaxRate(TaxRate parentTaxRate) {
        set(PROPERTY_PARENTTAXRATE, parentTaxRate);
    }
 
    public Country getCountry() {
        return (Country) get(PROPERTY_COUNTRY);
    }
 
    public void setCountry(Country country) {
        set(PROPERTY_COUNTRY, country);
    }
 
    public Region getRegion() {
        return (Region) get(PROPERTY_REGION);
    }
 
    public void setRegion(Region region) {
        set(PROPERTY_REGION, region);
    }
 
    public Country getDestinationCountry() {
        return (Country) get(PROPERTY_DESTINATIONCOUNTRY);
    }
 
    public void setDestinationCountry(Country destinationCountry) {
        set(PROPERTY_DESTINATIONCOUNTRY, destinationCountry);
    }
 
    public Region getDestinationRegion() {
        return (Region) get(PROPERTY_DESTINATIONREGION);
    }
 
    public void setDestinationRegion(Region destinationRegion) {
        set(PROPERTY_DESTINATIONREGION, destinationRegion);
    }
 
    public Boolean isTaxExempt() {
        return (Boolean) get(PROPERTY_TAXEXEMPT);
    }
 
    public void setTaxExempt(Boolean taxExempt) {
        set(PROPERTY_TAXEXEMPT, taxExempt);
    }
 
    public String getSalesPurchaseType() {
        return (String) get(PROPERTY_SALESPURCHASETYPE);
    }
 
    public void setSalesPurchaseType(String salesPurchaseType) {
        set(PROPERTY_SALESPURCHASETYPE, salesPurchaseType);
    }
 
    public Long getLineNo() {
        return (Long) get(PROPERTY_LINENO);
    }
 
    public void setLineNo(Long lineNo) {
        set(PROPERTY_LINENO, lineNo);
    }
 
    public Boolean isCascade() {
        return (Boolean) get(PROPERTY_CASCADE);
    }
 
    public void setCascade(Boolean cascade) {
        set(PROPERTY_CASCADE, cascade);
    }
 
    public org.openbravo.model.financialmgmt.tax.TaxCategory getTaxCategory() {
        return (org.openbravo.model.financialmgmt.tax.TaxCategory) get(PROPERTY_TAXCATEGORY);
    }
 
    public void setTaxCategory(
        org.openbravo.model.financialmgmt.tax.TaxCategory taxCategory) {
        set(PROPERTY_TAXCATEGORY, taxCategory);
    }
 
    public String getTaxCategoryName() {
        return (String) get(PROPERTY_TAXCATEGORYNAME);
    }
 
    public void setTaxCategoryName(String taxCategoryName) {
        set(PROPERTY_TAXCATEGORYNAME, taxCategoryName);
    }
 
    public String getTaxCatDescription() {
        return (String) get(PROPERTY_TAXCATDESCRIPTION);
    }
 
    public void setTaxCatDescription(String taxCatDescription) {
        set(PROPERTY_TAXCATDESCRIPTION, taxCatDescription);
    }
 
    public String getCommodityCode() {
        return (String) get(PROPERTY_COMMODITYCODE);
    }
 
    public void setCommodityCode(String commodityCode) {
        set(PROPERTY_COMMODITYCODE, commodityCode);
    }
 
    public TaxCategory getBusinessPartnerTaxCategory() {
        return (TaxCategory) get(PROPERTY_BUSINESSPARTNERTAXCATEGORY);
    }
 
    public void setBusinessPartnerTaxCategory(
        TaxCategory businessPartnerTaxCategory) {
        set(PROPERTY_BUSINESSPARTNERTAXCATEGORY, businessPartnerTaxCategory);
    }
 
    public String getBPTaxCategoryName() {
        return (String) get(PROPERTY_BPTAXCATEGORYNAME);
    }
 
    public void setBPTaxCategoryName(String bPTaxCategoryName) {
        set(PROPERTY_BPTAXCATEGORYNAME, bPTaxCategoryName);
    }
 
    public String getBPTaxCategoryDescription() {
        return (String) get(PROPERTY_BPTAXCATEGORYDESCRIPTION);
    }
 
    public void setBPTaxCategoryDescription(String bPTaxCategoryDescription) {
        set(PROPERTY_BPTAXCATEGORYDESCRIPTION, bPTaxCategoryDescription);
    }
 
    public Boolean isProcessNow() {
        return (Boolean) get(PROPERTY_PROCESSNOW);
    }
 
    public void setProcessNow(Boolean processNow) {
        set(PROPERTY_PROCESSNOW, processNow);
    }
 
    public Boolean isProcessed() {
        return (Boolean) get(PROPERTY_PROCESSED);
    }
 
    public void setProcessed(Boolean processed) {
        set(PROPERTY_PROCESSED, processed);
    }
 
    public String getImportErrorMessage() {
        return (String) get(PROPERTY_IMPORTERRORMESSAGE);
    }
 
    public void setImportErrorMessage(String importErrorMessage) {
        set(PROPERTY_IMPORTERRORMESSAGE, importErrorMessage);
    }
 
    public Boolean isImportProcessComplete() {
        return (Boolean) get(PROPERTY_IMPORTPROCESSCOMPLETE);
    }
 
    public void setImportProcessComplete(Boolean importProcessComplete) {
        set(PROPERTY_IMPORTPROCESSCOMPLETE, importProcessComplete);
    }
 
    public String getParentTaxName() {
        return (String) get(PROPERTY_PARENTTAXNAME);
    }
 
    public void setParentTaxName(String parentTaxName) {
        set(PROPERTY_PARENTTAXNAME, parentTaxName);
    }
 
    public String getCountryFromCode() {
        return (String) get(PROPERTY_COUNTRYFROMCODE);
    }
 
    public void setCountryFromCode(String countryFromCode) {
        set(PROPERTY_COUNTRYFROMCODE, countryFromCode);
    }
 
    public String getCountryToCode() {
        return (String) get(PROPERTY_COUNTRYTOCODE);
    }
 
    public void setCountryToCode(String countryToCode) {
        set(PROPERTY_COUNTRYTOCODE, countryToCode);
    }
 
    public String getRegionFromCode() {
        return (String) get(PROPERTY_REGIONFROMCODE);
    }
 
    public void setRegionFromCode(String regionFromCode) {
        set(PROPERTY_REGIONFROMCODE, regionFromCode);
    }
 
    public String getRegionToCode() {
        return (String) get(PROPERTY_REGIONTOCODE);
    }
 
    public void setRegionToCode(String regionToCode) {
        set(PROPERTY_REGIONTOCODE, regionToCode);
    }
}

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Reference/Entity_Model/DataImportTax"

This page has been accessed 847 times. This page was last modified on 2 July 2011, at 21:19. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.