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-2014 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).
  *
  * 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";
     public static final String PROPERTY_ID = "id";
     public static final String PROPERTY_CLIENT = "client";
     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_LOCATIONADDRESS = "locationAddress";
     public static final String PROPERTY_DUNS = "dUNS";
     public static final String PROPERTY_TAXID = "taxID";
     public static final String PROPERTY_BUSINESSPARTNER = "businessPartner";
     public static final String PROPERTY_NOTTAXDEDUCTABLE = "notTaxDeductable";
     public static final String PROPERTY_SALESTAXEXEMPTRATE = "salesTaxExemptRate";
     public static final String PROPERTY_LOGO = "logo";
     public static final String PROPERTY_REFERENCEORDER = "referenceOrder";
     public static final String PROPERTY_YOURCOMPANYDOCUMENTIMAGE = "yourCompanyDocumentImage";
     public static final String PROPERTY_AUTOMATICWRITEOFFAMT = "automaticWriteoffAmt";
     public static final String PROPERTY_USERCONTACT = "userContact";
     public static final String PROPERTY_CASHVAT = "cashVAT";
     public static final String PROPERTY_ISDOUBLECASH = "isDoubleCash";
     public static final String PROPERTY_APRMPAYMENTDESCRIPTION = "aPRMPaymentDescription";
     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;
     }
 
     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 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 Location getLocationAddress() {
         return (Location) get(PROPERTY_LOCATIONADDRESS);
     }
 
     public void setLocationAddress(Location locationAddress) {
         set(PROPERTY_LOCATIONADDRESS, locationAddress);
     }
 
     public String getDUNS() {
         return (String) get(PROPERTY_DUNS);
     }
 
     public void setDUNS(String dUNS) {
         set(PROPERTY_DUNS, dUNS);
     }
 
     public String getTaxID() {
         return (String) get(PROPERTY_TAXID);
     }
 
     public void setTaxID(String taxID) {
         set(PROPERTY_TAXID, taxID);
     }
 
     public BusinessPartner getBusinessPartner() {
         return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER);
     }
 
     public void setBusinessPartner(BusinessPartner businessPartner) {
         set(PROPERTY_BUSINESSPARTNER, businessPartner);
     }
 
     public Boolean isNotTaxDeductable() {
         return (Boolean) get(PROPERTY_NOTTAXDEDUCTABLE);
     }
 
     public void setNotTaxDeductable(Boolean notTaxDeductable) {
         set(PROPERTY_NOTTAXDEDUCTABLE, notTaxDeductable);
     }
 
     public TaxRate getSalesTaxExemptRate() {
         return (TaxRate) get(PROPERTY_SALESTAXEXEMPTRATE);
     }
 
     public void setSalesTaxExemptRate(TaxRate salesTaxExemptRate) {
         set(PROPERTY_SALESTAXEXEMPTRATE, salesTaxExemptRate);
     }
 
     public String getLogo() {
         return (String) get(PROPERTY_LOGO);
     }
 
     public void setLogo(String logo) {
         set(PROPERTY_LOGO, logo);
     }
 
     public Boolean isReferenceOrder() {
         return (Boolean) get(PROPERTY_REFERENCEORDER);
     }
 
     public void setReferenceOrder(Boolean referenceOrder) {
         set(PROPERTY_REFERENCEORDER, referenceOrder);
     }
 
     public Image getYourCompanyDocumentImage() {
         return (Image) get(PROPERTY_YOURCOMPANYDOCUMENTIMAGE);
     }
 
     public void setYourCompanyDocumentImage(Image yourCompanyDocumentImage) {
         set(PROPERTY_YOURCOMPANYDOCUMENTIMAGE, yourCompanyDocumentImage);
     }
 
     public BigDecimal getAutomaticWriteoffAmt() {
         return (BigDecimal) get(PROPERTY_AUTOMATICWRITEOFFAMT);
     }
 
     public void setAutomaticWriteoffAmt(BigDecimal automaticWriteoffAmt) {
         set(PROPERTY_AUTOMATICWRITEOFFAMT, automaticWriteoffAmt);
     }
 
     public User getUserContact() {
         return (User) get(PROPERTY_USERCONTACT);
     }
 
     public void setUserContact(User userContact) {
         set(PROPERTY_USERCONTACT, userContact);
     }
 
     public Boolean isCashVAT() {
         return (Boolean) get(PROPERTY_CASHVAT);
     }
 
     public void setCashVAT(Boolean cashVAT) {
         set(PROPERTY_CASHVAT, cashVAT);
     }
 
     public Boolean isDoubleCash() {
         return (Boolean) get(PROPERTY_ISDOUBLECASH);
     }
 
     public void setDoubleCash(Boolean isDoubleCash) {
         set(PROPERTY_ISDOUBLECASH, isDoubleCash);
     }
 
     public String getAPRMPaymentDescription() {
         return (String) get(PROPERTY_APRMPAYMENTDESCRIPTION);
     }
 
     public void setAPRMPaymentDescription(String aPRMPaymentDescription) {
         set(PROPERTY_APRMPAYMENTDESCRIPTION, aPRMPaymentDescription);
     }
 
     public Organization getOrganization() {
         return (Organization) get(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 866 times. This page was last modified on 8 September 2015, at 11:26. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.