ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.accounting.coa/C AcctSchema Element
C_AcctSchema_Element
- Name:C_AcctSchema_Element
- Classname:FinancialMgmtAcctSchemaElement
This table contains the following columns:
Name | Nullable | Data Type | Description
|
C_ElementValue_ID | Yes | VARCHAR (32) | Account Elements can be natural accounts or user defined values. |
C_Element_ID | Yes | VARCHAR (32) | The Account Tree uniquely identifies the Account Tree, also known as Chart of Accounts, linked to the Accounting Schema. |
C_AcctSchema_ID | No | VARCHAR (32) | The book containing all financial transactions recorded for the legal entity. |
C_AcctSchema_Element_ID | No | VARCHAR (32) | Definition of dimensions to be used by the system. There are two mandatory dimensions by default: Organization and Account. Any other dimension can be as well enabled here so that they appear in transactional windows. |
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. |
C_Activity_ID | Yes | VARCHAR (32) | Activities indicate tasks that are performed and used to utilize Activity based Costing |
IsBalanced | No | CHAR (1) | Needs to be balanced. |
C_BPartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
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 | Yes | VARCHAR (32) | The Location / Address field defines the location of an entity. |
IsMandatory | No | CHAR (1) | The Mandatory checkbox indicates if the field is required for a record to be save to the database. |
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. |
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. |
M_Product_ID | Yes | VARCHAR (32) | Identifies an item which is either purchased or sold in this organization. |
C_Project_ID | Yes | VARCHAR (32) | Identifier of a project defined within the Project & Service Management module. |
C_Campaign_ID | Yes | VARCHAR (32) | The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign. |
C_SalesRegion_ID | Yes | VARCHAR (32) | The Sales Region indicates a specific area of sales coverage. |
SeqNo | No | DECIMAL (10,0) | The Sequence indicates the order of records |
Org_ID | Yes | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. |
ElementType | No | VARCHAR (60) | The Element Type indicates if this element is the Account element or is a User Defined element. |
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
Account Element
- Physical column name: C_ElementValue_ID
- Property Name: accountElement
- Reference: OBUISEL_Selector Reference
Foreign key column to C_ElementValue table, (column: C_ElementValue_ID)
Accounting Element
- Physical column name: C_Element_ID
- Property Name: accountingElement
- Reference: TableDir
Foreign key column to C_Element table, (column: C_Element_ID)
Accounting Schema
- Physical column name: C_AcctSchema_ID
- Property Name: accountingSchema
- Reference: TableDir
- This column is a child for a business object (is Parent)
Foreign key column to C_AcctSchema table, (column: C_AcctSchema_ID)
Acct.Schema Element
- Physical column name: C_AcctSchema_Element_ID
- Property Name: id
- Reference: ID
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Activity
- Physical column name: C_Activity_ID
- Property Name: activity
- Reference: TableDir
Foreign key column to C_Activity table, (column: C_Activity_ID)
Balanced
- Physical column name: IsBalanced
- Property Name: balanced
- Reference: YesNo
- Default value: N
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_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: locationAddress
- Reference: Search
Foreign key column to C_Location table, (column: C_Location_ID)
Mandatory
- Physical column name: IsMandatory
- Property Name: mandatory
- Reference: YesNo
- Default value: N
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Product
- Physical column name: M_Product_ID
- Property Name: product
- Reference: Search
Foreign key column to M_Product table, (column: M_Product_ID)
Project
- Physical column name: C_Project_ID
- Property Name: project
- Reference: TableDir
Foreign key column to C_Project table, (column: C_Project_ID)
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: TableDir
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Sales Region
- Physical column name: C_SalesRegion_ID
- Property Name: salesRegion
- Reference: TableDir
Foreign key column to C_SalesRegion table, (column: C_SalesRegion_ID)
Sequence Number
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
Trx Organization
- Physical column name: Org_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org (without *)", with the following code
AD_ORG_ID <> '0'
Type
- Physical column name: ElementType
- Property Name: type
- Reference: List
List values: C_AcctSchema ElementType
The allowed values for this list are:
- AY (Activity)
- AS (Asset): Asset
- CC (Cost Center): Cost Center
- OO (Organization): Owning Organization
- AC (Account): Natural Account
- PR (Product): Product
- BP (Bus.Partner): Business Partner
- OT (Trx. Org): Transaction Organization
- LF (Location From): Location From
- LT (Location To): Location To
- SR (Sales Region): Sales Region
- PJ (Project): Project
- MC (Campaign): Marketing Campaign
- U1 (User 1): User 1
- U2 (User 2): User 2
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_ACCTSCHEMA_ELEMENT_SCHEMA Not Unique. Columns:
- C_ACCTSCHEMA_ID
Check Constraints
These are the check constraints for this table:
- C_ACCTSCHEMA_ELEMENT_ISACT_CHK: ISACTIVE IN ('Y', 'N')
- C_ACCTSCHEMA_ELEMENT_ISBAL_CHK: ISBALANCED IN ('Y', 'N')
- C_ACCTSCHEMA_ELEMENT_ISMAN_CHK: ISMANDATORY IN ('Y', 'N')