ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.geography/C Location
Contents |
C_Location
- Name:C_Location
- Classname:Location
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | CHAR (1) | 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. |
Address1 | Yes | NVARCHAR (60) | The Address 1 identifies the address for an entity's location |
Address2 | Yes | NVARCHAR (60) | The Address 2 provides additional address information for an entity. It can be used for building location, apartment number or similar information. |
C_City_ID | Yes | VARCHAR (32) | City in a country |
City | Yes | NVARCHAR (60) | The City identifies a unique City for this Country or Region. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
C_Country_ID | No | VARCHAR (32) | The Country defines a Country. Each Country must be defined before it can be used in any document. |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
C_Location_ID | No | VARCHAR (32) | The Location / Address field defines the location of an entity. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Postal | Yes | VARCHAR (10) | The Postal Code field identifies the postal code for this entity's address. |
Postal_Add | Yes | VARCHAR (10) | The Additional ZIP or Postal Code identifies, if appropriate, any additional Postal Code information. |
C_Region_ID | Yes | VARCHAR (32) | The Region identifies a unique Region for this Country. |
RegionName | Yes | NVARCHAR (40) | The Region Name defines the name that will print when this region is used in a document. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Address Line 1
- Physical column name: Address1
- Property Name: addressLine1
- Reference: String
- This column is part of the table's identifier
Address Line 2
- Physical column name: Address2
- Property Name: addressLine2
- Reference: String
- This column is part of the table's identifier
City
- Physical column name: C_City_ID
- Property Name: city
- Reference: Search
Foreign key column to C_City table, (column: C_City_ID)
City Name
- Physical column name: City
- Property Name: cityName
- Reference: String
- This column is part of the table's identifier
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to C_Country table, (column: C_Country_ID)
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Location / Address
- Physical column name: C_Location_ID
- Property Name: id
- Reference: ID
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Postal Code
- Physical column name: Postal
- Property Name: postalCode
- Reference: String
- This column is part of the table's identifier
Postal add
- Physical column name: Postal_Add
- Property Name: postalAdd
- Reference: String
Region
- Physical column name: C_Region_ID
- Property Name: region
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to C_Region table, (column: C_Region_ID)
It has a validation "C_Region of Country", with the following code
C_Region.C_Country_ID=@C_Country_ID@
Region Name
- Physical column name: RegionName
- Property Name: regionName
- Reference: String
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_LOCATION_IDENTIFIER Not Unique. Columns:
- functionBasedColumn
Check Constraints
These are the check constraints for this table:
- C_LOCATION_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')