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/3.0/Developers Guide/Reference/Entity Model/OrganizationInformation

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Back button.png   Back to ERP/3.0/Developers_Guide/Reference/Entity_Model#OrganizationInformation


OrganizationInformation

The Organization Info Tab is used to define an Organization's address, DUNS number and Tax Identification number

To the database table (AD_OrgInfo) of this entity.

Properties

Note:

Property Column Constraints Type Description
id* AD_Org_ID Mandatory
Max Length: 22
java.lang.String An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
client AD_Client_ID Mandatory
ADClient A Client is a company or a legal entity. You cannot share data between Clients.
active IsActive Mandatory
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 Mandatory
java.util.Date The Created field indicates the date that this record was created.
createdBy CreatedBy Mandatory
ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory
java.util.Date The Updated field indicates the date that this record was updated.
updatedBy UpdatedBy Mandatory
ADUser The Updated By field indicates the user who updated this record.
locationAddress C_Location_ID Location The Location / Address field defines the location of an entity.
dUNS DUNS Max Length: 11
java.lang.String Used for EDI - For details see www.dnb.com/dunsno/list.htm
taxID TaxID Mandatory
Max Length: 20
java.lang.String The Tax ID field identifies the legal Identification number of this Entity.
businessPartner C_BPartner_ID BusinessPartner A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.
notTaxDeductable Istaxundeductable Mandatory
java.lang.Boolean Check it if the tax is not deductible
salesTaxExemptRate C_Tax_ID FinancialMgmtTaxRate The Tax indicates the type of tax for this document line.
logo Logo Max Length: 200
java.lang.String
referenceOrder Reference_Order java.lang.Boolean Uses Order document number as inout number
yourCompanyDocumentImage Your_Company_Document_Image ADImage
automaticWriteoffAmt Automatic_Writeoff_Amt java.math.BigDecimal Outstanding amounts lower than this are automatically proposed to be written off.
userContact AD_User_ID ADUser The User identifies a unique user in the system. This could be an internal user or a business partner contact
cashVAT Iscashvat Mandatory
java.lang.Boolean Cash VAT tax rate
isDoubleCash IsDoubleCash Mandatory
java.lang.Boolean Organization is subscribed to the Double Cash criteria. If both the Cash VAT and the Double Cash Criteria flags are set to Yes, the Cash VAT regime will be automatically applied for the purchase flow too.
aPRMPaymentDescription EM_Aprm_Payment_Desc Mandatory
Max Length: 60
java.lang.String Purchase Invoice's reference to be automatically included into the payment description. Possible values are:

- Invoice document number (default). - Supplier reference, which is defined in the invoice's header.

organization# AD_Org_ID Mandatory
Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.


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-2019 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
 */
 package org.openbravo.model.common.enterprise;
 
 import java.math.BigDecimal;
 import java.util.Date;
 
 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.ad.utility.Image;
 import org.openbravo.model.common.businesspartner.BusinessPartner;
 import org.openbravo.model.common.geography.Location;
 import org.openbravo.model.financialmgmt.tax.TaxRate;
 /**
  * Entity class for entity OrganizationInformation (stored in table AD_OrgInfo).
  * <br>
  * Help: {@literal The Organization Info Tab is used to define an Organization's address, DUNS number and Tax
        Identification number}
  * <br>
  * NOTE: This class should not be instantiated directly. To instantiate this
  * class the {@link org.openbravo.base.provider.OBProvider} should be used.
  */
 public class OrganizationInformation extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
     private static final long serialVersionUID = 1L;
     public static final String TABLE_NAME = "AD_OrgInfo";
     public static final String ENTITY_NAME = "OrganizationInformation";
 
     /**
      * Property id stored in column AD_Org_ID in table AD_OrgInfo
      * @see 
      * 
      */
     public static final String PROPERTY_ID = "id";
 
     /**
      * Property client stored in column AD_Client_ID in table AD_OrgInfo
      * @see ClientEnabled 
      * 
      */
     public static final String PROPERTY_CLIENT = "client";
 
     /**
      * Property active stored in column IsActive in table AD_OrgInfo
      * @see ActiveEnabled 
      * 
      */
     public static final String PROPERTY_ACTIVE = "active";
 
     /**
      * Property creationDate stored in column Created in table AD_OrgInfo
      * @see Traceable 
      * 
      */
     public static final String PROPERTY_CREATIONDATE = "creationDate";
 
     /**
      * Property createdBy stored in column CreatedBy in table AD_OrgInfo
      * @see Traceable 
      * 
      */
     public static final String PROPERTY_CREATEDBY = "createdBy";
 
     /**
      * Property updated stored in column Updated in table AD_OrgInfo
      * @see Traceable 
      * 
      */
     public static final String PROPERTY_UPDATED = "updated";
 
     /**
      * Property updatedBy stored in column UpdatedBy in table AD_OrgInfo
      * @see Traceable 
      * 
      */
     public static final String PROPERTY_UPDATEDBY = "updatedBy";
 
     /**
      * Property locationAddress stored in column C_Location_ID in table AD_OrgInfo<br>
      * Help: {@literal The Location / Address field defines the location of an entity.}
      * 
      */
     public static final String PROPERTY_LOCATIONADDRESS = "locationAddress";
 
     /**
      * Property dUNS stored in column DUNS in table AD_OrgInfo<br>
      * Help: {@literal Used for EDI - For details see   www.dnb.com/dunsno/list.htm}
      * 
      */
     public static final String PROPERTY_DUNS = "dUNS";
 
     /**
      * Property taxID stored in column TaxID in table AD_OrgInfo<br>
      * Help: {@literal The Tax ID field identifies the legal Identification number of this Entity.}
      * 
      */
     public static final String PROPERTY_TAXID = "taxID";
 
     /**
      * Property businessPartner stored in column C_BPartner_ID in table AD_OrgInfo<br>
      * Help: {@literal A Business Partner is anyone with whom you transact.  This can include a customer, vendor, employee
        or any combination of these.}
      * 
      */
     public static final String PROPERTY_BUSINESSPARTNER = "businessPartner";
 
     /**
      * Property notTaxDeductable stored in column Istaxundeductable in table AD_OrgInfo<br>
      * Help: {@literal Check it if the tax is not deductible}
      * 
      */
     public static final String PROPERTY_NOTTAXDEDUCTABLE = "notTaxDeductable";
 
     /**
      * Property salesTaxExemptRate stored in column C_Tax_ID in table AD_OrgInfo<br>
      * Help: {@literal The Tax indicates the type of tax for this document line.}
      * 
      */
     public static final String PROPERTY_SALESTAXEXEMPTRATE = "salesTaxExemptRate";
 
     /**
      * Property logo stored in column Logo in table AD_OrgInfo
      * 
      */
     public static final String PROPERTY_LOGO = "logo";
 
     /**
      * Property referenceOrder stored in column Reference_Order in table AD_OrgInfo<br>
      * Help: {@literal Uses Order document number as inout number}
      * 
      */
     public static final String PROPERTY_REFERENCEORDER = "referenceOrder";
 
     /**
      * Property yourCompanyDocumentImage stored in column Your_Company_Document_Image in table AD_OrgInfo
      * 
      */
     public static final String PROPERTY_YOURCOMPANYDOCUMENTIMAGE = "yourCompanyDocumentImage";
 
     /**
      * Property automaticWriteoffAmt stored in column Automatic_Writeoff_Amt in table AD_OrgInfo<br>
      * Help: {@literal Outstanding amounts lower than this are automatically proposed to be written off.}
      * 
      */
     public static final String PROPERTY_AUTOMATICWRITEOFFAMT = "automaticWriteoffAmt";
 
     /**
      * Property userContact stored in column AD_User_ID in table AD_OrgInfo<br>
      * Help: {@literal The User identifies a unique user in the system. This could be an internal user or a business
        partner contact}
      * 
      */
     public static final String PROPERTY_USERCONTACT = "userContact";
 
     /**
      * Property cashVAT stored in column Iscashvat in table AD_OrgInfo<br>
      * Help: {@literal Cash VAT tax rate}
      * 
      */
     public static final String PROPERTY_CASHVAT = "cashVAT";
 
     /**
      * Property isDoubleCash stored in column IsDoubleCash in table AD_OrgInfo<br>
      * Help: {@literal Organization is subscribed to the Double Cash criteria. If both the Cash VAT and the Double Cash
        Criteria flags are set to Yes, the Cash VAT regime will be automatically applied for the purchase
        flow too.}
      * 
      */
     public static final String PROPERTY_ISDOUBLECASH = "isDoubleCash";
 
     /**
      * Property aPRMPaymentDescription stored in column EM_Aprm_Payment_Desc in table AD_OrgInfo<br>
      * Help: {@literal Purchase Invoice's reference to be automatically included into the payment description. Possible
        values are:
        - Invoice document number (default).
        - Supplier reference, which is defined in the
        invoice's header.}
      * 
      */
     public static final String PROPERTY_APRMPAYMENTDESCRIPTION = "aPRMPaymentDescription";
 
     /**
      * Property organization stored in column AD_Org_ID in table AD_OrgInfo<br>
      * Help: {@literal An organization is a unit of your client or legal entity - examples are store, department. You can
        share data between organizations.}
      * 
      */
     public static final String PROPERTY_ORGANIZATION = "organization";
 
 
     public OrganizationInformation() {
         setDefaultValue(PROPERTY_ACTIVE, true);
         setDefaultValue(PROPERTY_NOTTAXDEDUCTABLE, false);
         setDefaultValue(PROPERTY_REFERENCEORDER, false);
         setDefaultValue(PROPERTY_CASHVAT, false);
         setDefaultValue(PROPERTY_ISDOUBLECASH, false);
         setDefaultValue(PROPERTY_APRMPAYMENTDESCRIPTION, "Invoice Document Number");
     }
 
     @Override
     public String getEntityName() {
         return ENTITY_NAME;
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_ID
      * 
      */
     public String getId() {
         return (String) get(PROPERTY_ID);
     }
     /**
      * @see OrganizationInformation#PROPERTY_ID
      * 
      */
     public void setId(String id) {
         set(PROPERTY_ID, id);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_CLIENT
      * 
      */
     public Client getClient() {
         return (Client) get(PROPERTY_CLIENT);
     }
     /**
      * @see OrganizationInformation#PROPERTY_CLIENT
      * 
      */
     public void setClient(Client client) {
         set(PROPERTY_CLIENT, client);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_ACTIVE
      * 
      */
     public Boolean isActive() {
         return (Boolean) get(PROPERTY_ACTIVE);
     }
     /**
      * @see OrganizationInformation#PROPERTY_ACTIVE
      * 
      */
     public void setActive(Boolean active) {
         set(PROPERTY_ACTIVE, active);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_CREATIONDATE
      * 
      */
     public Date getCreationDate() {
         return (Date) get(PROPERTY_CREATIONDATE);
     }
     /**
      * @see OrganizationInformation#PROPERTY_CREATIONDATE
      * 
      */
     public void setCreationDate(Date creationDate) {
         set(PROPERTY_CREATIONDATE, creationDate);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_CREATEDBY
      * 
      */
     public User getCreatedBy() {
         return (User) get(PROPERTY_CREATEDBY);
     }
     /**
      * @see OrganizationInformation#PROPERTY_CREATEDBY
      * 
      */
     public void setCreatedBy(User createdBy) {
         set(PROPERTY_CREATEDBY, createdBy);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_UPDATED
      * 
      */
     public Date getUpdated() {
         return (Date) get(PROPERTY_UPDATED);
     }
     /**
      * @see OrganizationInformation#PROPERTY_UPDATED
      * 
      */
     public void setUpdated(Date updated) {
         set(PROPERTY_UPDATED, updated);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_UPDATEDBY
      * 
      */
     public User getUpdatedBy() {
         return (User) get(PROPERTY_UPDATEDBY);
     }
     /**
      * @see OrganizationInformation#PROPERTY_UPDATEDBY
      * 
      */
     public void setUpdatedBy(User updatedBy) {
         set(PROPERTY_UPDATEDBY, updatedBy);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_LOCATIONADDRESS
      * 
      */
     public Location getLocationAddress() {
         return (Location) get(PROPERTY_LOCATIONADDRESS);
     }
     /**
      * @see OrganizationInformation#PROPERTY_LOCATIONADDRESS
      * 
      */
     public void setLocationAddress(Location locationAddress) {
         set(PROPERTY_LOCATIONADDRESS, locationAddress);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_DUNS
      * 
      */
     public String getDUNS() {
         return (String) get(PROPERTY_DUNS);
     }
     /**
      * @see OrganizationInformation#PROPERTY_DUNS
      * 
      */
     public void setDUNS(String dUNS) {
         set(PROPERTY_DUNS, dUNS);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_TAXID
      * 
      */
     public String getTaxID() {
         return (String) get(PROPERTY_TAXID);
     }
     /**
      * @see OrganizationInformation#PROPERTY_TAXID
      * 
      */
     public void setTaxID(String taxID) {
         set(PROPERTY_TAXID, taxID);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_BUSINESSPARTNER
      * 
      */
     public BusinessPartner getBusinessPartner() {
         return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER);
     }
     /**
      * @see OrganizationInformation#PROPERTY_BUSINESSPARTNER
      * 
      */
     public void setBusinessPartner(BusinessPartner businessPartner) {
         set(PROPERTY_BUSINESSPARTNER, businessPartner);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_NOTTAXDEDUCTABLE
      * 
      */
     public Boolean isNotTaxDeductable() {
         return (Boolean) get(PROPERTY_NOTTAXDEDUCTABLE);
     }
     /**
      * @see OrganizationInformation#PROPERTY_NOTTAXDEDUCTABLE
      * 
      */
     public void setNotTaxDeductable(Boolean notTaxDeductable) {
         set(PROPERTY_NOTTAXDEDUCTABLE, notTaxDeductable);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_SALESTAXEXEMPTRATE
      * 
      */
     public TaxRate getSalesTaxExemptRate() {
         return (TaxRate) get(PROPERTY_SALESTAXEXEMPTRATE);
     }
     /**
      * @see OrganizationInformation#PROPERTY_SALESTAXEXEMPTRATE
      * 
      */
     public void setSalesTaxExemptRate(TaxRate salesTaxExemptRate) {
         set(PROPERTY_SALESTAXEXEMPTRATE, salesTaxExemptRate);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_LOGO
      * 
      */
     public String getLogo() {
         return (String) get(PROPERTY_LOGO);
     }
     /**
      * @see OrganizationInformation#PROPERTY_LOGO
      * 
      */
     public void setLogo(String logo) {
         set(PROPERTY_LOGO, logo);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_REFERENCEORDER
      * 
      */
     public Boolean isReferenceOrder() {
         return (Boolean) get(PROPERTY_REFERENCEORDER);
     }
     /**
      * @see OrganizationInformation#PROPERTY_REFERENCEORDER
      * 
      */
     public void setReferenceOrder(Boolean referenceOrder) {
         set(PROPERTY_REFERENCEORDER, referenceOrder);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_YOURCOMPANYDOCUMENTIMAGE
      * 
      */
     public Image getYourCompanyDocumentImage() {
         return (Image) get(PROPERTY_YOURCOMPANYDOCUMENTIMAGE);
     }
     /**
      * @see OrganizationInformation#PROPERTY_YOURCOMPANYDOCUMENTIMAGE
      * 
      */
     public void setYourCompanyDocumentImage(Image yourCompanyDocumentImage) {
         set(PROPERTY_YOURCOMPANYDOCUMENTIMAGE, yourCompanyDocumentImage);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_AUTOMATICWRITEOFFAMT
      * 
      */
     public BigDecimal getAutomaticWriteoffAmt() {
         return (BigDecimal) get(PROPERTY_AUTOMATICWRITEOFFAMT);
     }
     /**
      * @see OrganizationInformation#PROPERTY_AUTOMATICWRITEOFFAMT
      * 
      */
     public void setAutomaticWriteoffAmt(BigDecimal automaticWriteoffAmt) {
         set(PROPERTY_AUTOMATICWRITEOFFAMT, automaticWriteoffAmt);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_USERCONTACT
      * 
      */
     public User getUserContact() {
         return (User) get(PROPERTY_USERCONTACT);
     }
     /**
      * @see OrganizationInformation#PROPERTY_USERCONTACT
      * 
      */
     public void setUserContact(User userContact) {
         set(PROPERTY_USERCONTACT, userContact);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_CASHVAT
      * 
      */
     public Boolean isCashVAT() {
         return (Boolean) get(PROPERTY_CASHVAT);
     }
     /**
      * @see OrganizationInformation#PROPERTY_CASHVAT
      * 
      */
     public void setCashVAT(Boolean cashVAT) {
         set(PROPERTY_CASHVAT, cashVAT);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_ISDOUBLECASH
      * 
      */
     public Boolean isDoubleCash() {
         return (Boolean) get(PROPERTY_ISDOUBLECASH);
     }
     /**
      * @see OrganizationInformation#PROPERTY_ISDOUBLECASH
      * 
      */
     public void setDoubleCash(Boolean isDoubleCash) {
         set(PROPERTY_ISDOUBLECASH, isDoubleCash);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_APRMPAYMENTDESCRIPTION
      * 
      */
     public String getAPRMPaymentDescription() {
         return (String) get(PROPERTY_APRMPAYMENTDESCRIPTION);
     }
     /**
      * @see OrganizationInformation#PROPERTY_APRMPAYMENTDESCRIPTION
      * 
      */
     public void setAPRMPaymentDescription(String aPRMPaymentDescription) {
         set(PROPERTY_APRMPAYMENTDESCRIPTION, aPRMPaymentDescription);
     }
 
     /**
      * @see OrganizationInformation#PROPERTY_ORGANIZATION
      * 
      */
     public Organization getOrganization() {
         return (Organization) get(PROPERTY_ORGANIZATION);
     }
     /**
      * @see OrganizationInformation#PROPERTY_ORGANIZATION
      * 
      */
     public void setOrganization(Organization organization) {
         set(PROPERTY_ORGANIZATION, organization);
     }
 
 }

Retrieved from "http://wiki.openbravo.com/wiki/ERP/3.0/Developers_Guide/Reference/Entity_Model/OrganizationInformation"

This page has been accessed 1,331 times. This page was last modified on 12 November 2019, at 08:19. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.