ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.geography/C Country
C_Country
- Name:C_Country
- Classname:Country
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. |
HasPostal_Add | No | CHAR (1) | The Additional Postal Code checkbox indicates if this address uses an additional Postal Code. If it is selected an additional field displays for entry of the additional Postal Code. |
ExpressionPostal_Add | Yes | NVARCHAR (20) | Additional Postal Format |
DisplaySequence | No | NVARCHAR (20) | The Address Print format defines the format to be used when this address prints. The following notations are used: @C@=City @P@=Postal @A@=PostalAdd @R@=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_Currency_ID | Yes | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Dateformat | Yes | VARCHAR (32) | |
Datetimeformat | Yes | VARCHAR (32) | |
Decimalseparator | Yes | VARCHAR (60) | |
IsDefault | Yes | CHAR (1) | The Default Checkbox indicates if this record will be used as a default value. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
Groupingseparator | Yes | VARCHAR (60) | |
HasRegion | No | CHAR (1) | The Country has Region checkbox is selected if the Country being defined is divided into regions. If this checkbox is selected, the Region Tab is accessible. |
IBANCountry | Yes | NVARCHAR (2) | Then International Bank Account Number structure stablish that the first two digits will belong to the country. This country code is the one associated to a country of the application in this field. |
IBANNoDigits | Yes | DECIMAL | Then International Bank Account Number structure do not stablish a specific length: it depends on the country. This field will define the length of the IBAN codes for that country. |
CountryCode | No | CHAR (2) | For details - http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1.html or - http://www.unece.org/trade/rec/rec03en.htm |
AD_Language | Yes | VARCHAR (6) | The Language identifies the language to use for display |
Name | No | NVARCHAR (60) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
Numericmask | Yes | VARCHAR (32) | |
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. |
ExpressionPhone | Yes | NVARCHAR (20) | Phone Format |
ExpressionPostal | Yes | NVARCHAR (20) | Postal code Format |
RegionName | Yes | NVARCHAR (60) | 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
Additional Postal Code
- Physical column name: HasPostal_Add
- Property Name: additionalPostalCode
- Reference: YesNo
- Default value: N
Additional Postal Format
- Physical column name: ExpressionPostal_Add
- Property Name: additionalPostalFormat
- Reference: String
Address Print Format
- Physical column name: DisplaySequence
- Property Name: addressPrintFormat
- Reference: String
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: id
- Reference: 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
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Dateformat
- Physical column name: Dateformat
- Property Name: dateformat
- Reference: String
Datetimeformat
- Physical column name: Datetimeformat
- Property Name: datetimeformat
- Reference: String
Decimalseparator
- Physical column name: Decimalseparator
- Property Name: decimalseparator
- Reference: List
List values: Decimal Separator
The allowed values for this list are:
- D (.)
- C (,)
Default
- Physical column name: IsDefault
- Property Name: default
- Reference: YesNo
- Default value: N
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Groupingseparator
- Physical column name: Groupingseparator
- Property Name: groupingseparator
- Reference: List
List values: Decimal Separator
The allowed values for this list are:
- D (.)
- C (,)
Has Regions
- Physical column name: HasRegion
- Property Name: hasRegions
- Reference: YesNo
- Default value: N
IBAN Code
- Physical column name: IBANCountry
- Property Name: iBANCode
- Reference: String
IBAN Length
- Physical column name: IBANNoDigits
- Property Name: iBANLength
- Reference: Integer
ISO Country Code
- Physical column name: CountryCode
- Property Name: iSOCountryCode
- Reference: String
Language
- Physical column name: AD_Language
- Property Name: language
- Reference: Table
Foreign key column to AD_Language table, (column: AD_Language)
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Numericmask
- Physical column name: Numericmask
- Property Name: numericmask
- Reference: String
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Phone No. Format
- Physical column name: ExpressionPhone
- Property Name: phoneNoFormat
- Reference: String
Postal Code Format
- Physical column name: ExpressionPostal
- Property Name: postalCodeFormat
- Reference: String
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
Check Constraints
These are the check constraints for this table:
- C_COUNTRY_HASPOSTAL_ADD_CHECK: HASPOSTAL_ADD IN ('Y', 'N')
- C_COUNTRY_HASREGION_CHECK: HASREGION IN ('Y', 'N')
- C_COUNTRY_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- C_COUNTRY_ISDEFAULT_CHECK: ISDEFAULT IN ('Y', 'N')