ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.gl/GL Journal
GL_Journal
- Name:GL_Journal
- Classname:FinancialMgmtGLJournal
This table contains the following columns:
Name | Nullable | Data Type | Description
|
User1_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
User2_ID | Yes | VARCHAR (32) | The user defined element displays the optional elements that have been defined for this account combination. |
DateAcct | No | TIMESTAMP (7) | The date this transaction is recorded on in the general ledger. This date also indicates which accounting period within the fiscal year this transaction will be part of. |
C_AcctSchema_ID | Yes | VARCHAR (32) | The book containing all financial transactions recorded for the legal entity. |
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. |
IsApproved | No | CHAR (1) | The Approved checkbox indicates if this document requires approval before it can be processed. |
A_Asset_ID | Yes | VARCHAR (32) | Any item of economic value owned by the corporation, especially that which could be converted to cash. |
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. |
ControlAmt | Yes | DECIMAL | If the control amount is zero, no check is performed.Otherwise the total Debit amount must be equal to the control amount, before the document is processed. |
C_Costcenter_ID | Yes | VARCHAR (32) | Division that adds to the cost of an organization. Internal structure for cost allocation. |
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 | No | VARCHAR (32) | Indicates the currency to be used when processing this document. |
CurrencyRateType | No | VARCHAR (60) | The Conversion Rate Type indicates the type of rate to use when retrieving the conversion rate. It allows you to define multiple rates for the same to and from currency. For example you may have a set of rates used for daily transactions with a rate type of SPOT and rates for currency revaluation defined as REVAL. |
Description | No | NVARCHAR (255) | A description is limited to 255 characters. |
DocAction | No | VARCHAR (60) |
You find the current status in the Document Status field. The options are listed in a popup |
DateDoc | No | TIMESTAMP (7) | The Document Date indicates the date the document was generated. It may or may not be the same as the accounting date. |
DocumentNo | No | NVARCHAR (30) | The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". If the document type of your document has no automatic document sequence defined, the field will be empty when creating a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Document Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table inside the database (e.g. C_Order). |
DocStatus | No | VARCHAR (60) | The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window. |
C_DocType_ID | No | VARCHAR (32) | The Document Type determines document sequence and processing rules |
GL_Category_ID | No | VARCHAR (32) | The General Ledger Category is an optional, user defined method of grouping journal lines. |
GL_JournalBatch_ID | Yes | VARCHAR (32) | The General Ledger Journal Batch identifies a group of journals to be processed as a group. |
GL_Journal_ID | No | VARCHAR (32) | The General Ledger Journal identifies a group of journal lines which represent a logical business transaction |
Multi_Gl | No | CHAR (1) | |
IsOpening | No | CHAR (1) | A flag indicating this is an opening entry |
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. |
C_Period_ID | No | VARCHAR (32) | The Period indicates an exclusive range of dates for a calendar. |
Posted | No | VARCHAR (60) | An accounting status button that indicates if the transaction has already been posted to the general ledger or not. When doing the accounting manually this button can be used to post or unpost the transaction from the general ledger by hand. |
PostingType | No | VARCHAR (60) | The Posting Type indicates the type of amount (Actual, Encumbrance, Budget) this journal updated. |
IsPrinted | Yes | CHAR (1) | The Printed checkbox indicates if this document or line will included when printing. |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | Yes | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
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. |
CurrencyRate | No | DECIMAL | The Currency Conversion Rate indicates the rate to use when converting the source currency to the accounting currency |
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. |
TotalCr | No | DECIMAL | The Total Credit indicates the total credit amount for a journal or journal batch in the source currency |
TotalDr | No | DECIMAL | The Total Debit indicates the total debit amount for a journal or journal batch in the source currency |
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
1st Dimension
- Physical column name: User1_ID
- Property Name: stDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User1 table, (column: User1_ID)
2nd Dimension
- Physical column name: User2_ID
- Property Name: ndDimension
- Reference: OBUISEL_Selector Reference
Foreign key column to User2 table, (column: User2_ID)
Accounting Date
- Physical column name: DateAcct
- Property Name: accountingDate
- Reference: Date
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [1] Java Class.
Accounting Schema
- Physical column name: C_AcctSchema_ID
- Property Name: accountingSchema
- Reference: TableDir
Foreign key column to C_AcctSchema table, (column: C_AcctSchema_ID)
It has a validation "C_AcctSchema - Schemas matching parent organizations", with the following code
EXISTS (SELECT 1 FROM AD_ORG_ACCTSCHEMA WHERE AD_ORG_ACCTSCHEMA.C_ACCTSCHEMA_ID = C_ACCTSCHEMA.C_ACCTSCHEMA_ID AND AD_ISORGINCLUDED(@AD_Org_ID@, AD_ORG_ID, AD_CLIENT_ID)<>-1)
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [2] Java Class.
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Approved
- Physical column name: IsApproved
- Property Name: approved
- Reference: YesNo
- Default value: Y
Asset
- Physical column name: A_Asset_ID
- Property Name: asset
- Reference: OBUISEL_Selector Reference
Foreign key column to A_Asset table, (column: A_Asset_ID)
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)
Control Amount
- Physical column name: ControlAmt
- Property Name: controlAmount
- Reference: Amount
- Default value: 0
Cost Center
- Physical column name: C_Costcenter_ID
- Property Name: costCenter
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Costcenter table, (column: C_Costcenter_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)
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [3] Java Class.
Currency Rate Type
- Physical column name: CurrencyRateType
- Property Name: currencyRateType
- Reference: List
List values: C_Conversion_Rate Types
The allowed values for this list are:
- A (Average): Average Rates
- C (Company): Company Rate
- U (User Type): User Rate Type
- M (Manual Rate): Manual Rate
- S (Spot): Spot Conversation Rate Type
- P (Period End): Period Conversion Type
- N (None): No Conversion Rate
- F (Fixed): Euro Fixed Currency
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Document Action
- Physical column name: DocAction
- Property Name: documentAction
- Reference: List
List values: All_Document Action
The allowed values for this list are:
- CO (Complete): Generate documents and complete transaction
- AP (Approve): Approve this transaction
- RJ (Reject): Reject the approval of the document.
- PO (Post): Post transaction
- VO (Void): Set all quantities to zero and complete transaction
- CL (Close): Finally close this transaction. It cannot be re-activated.
- RC (Void): Reverse Transaction (correction) by reversing sign with same date
- RA (Reverse - Accrual): Reverse by switching Dr/Cr with current date
- TR (Transfer)
- RE (Reactivate): Reverse documents/inventory and allow changes; You need to Complete the transaction after the change.
- -- (<None>): No action
- PR (Process): Reserve Inventory
- XL (Unlock): Unlock transaction (process error)
Document Date
- Physical column name: DateDoc
- Property Name: documentDate
- Reference: Date
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [4] Java Class.
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Document Status
- Physical column name: DocStatus
- Property Name: documentStatus
- Reference: List
List values: All_Document Status
The allowed values for this list are:
- DR (Draft)
- CO (Completed)
- AP (Accepted)
- CH (Modified)
- NA (Not Accepted)
- TE (Transfer Error)
- PR (Printed)
- TR (Transferred)
- VO (Voided)
- IN (Inactive)
- PE (Accounting Error)
- PO (Posted)
- RE (Re-Opened)
- CL (Closed)
- ?? (Unknown)
- XX (Procesando)
- IP (Under Way)
- WP (Not Paid)
- TEMP (Temporal): A temporal invoice is not available (not visible) in the system. This kind of invoices are ignored by standard processes.
Document Type
- Physical column name: C_DocType_ID
- Property Name: documentType
- Reference: TableDir
Foreign key column to C_DocType table, (column: C_DocType_ID)
It has a validation "C_DocType Journals", with the following code
C_DocType.DocBaseType='GLJ' AND AD_ISORGINCLUDED( @AD_Org_ID@, C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1'
G/L Category
- Physical column name: GL_Category_ID
- Property Name: gLCategory
- Reference: TableDir
Foreign key column to GL_Category table, (column: GL_Category_ID)
It has a validation "GL_Category for Manual Journals", with the following code
GL_Category.CategoryType='M'
Journal Batch
- Physical column name: GL_JournalBatch_ID
- Property Name: journalBatch
- Reference: Search
- This column is a child for a business object (is Parent)
Foreign key column to GL_JournalBatch table, (column: GL_JournalBatch_ID)
Journal Entry
- Physical column name: GL_Journal_ID
- Property Name: id
- Reference: ID
Multi-general ledger
- Physical column name: Multi_Gl
- Property Name: multigeneralLedger
- Reference: YesNo
- Default value: N
Callout: SL_Journal_MultiAcctSchema
This column has a callout associated.
It is implemented by [5] Java Class.
Opening
- Physical column name: IsOpening
- Property Name: opening
- Reference: YesNo
- Default value: N
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org show batch's child organizations", with the following code
(AD_ISORGINCLUDED(ad_org.ad_org_id, @Batch_Org@, ad_org.ad_client_id)<>-1 AND IsReady='Y') or @Batch_Org@ is null
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [6] Java Class.
Period
- Physical column name: C_Period_ID
- Property Name: period
- Reference: Table
Foreign key column to C_Period table, (column: C_Period_ID)
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [7] Java Class.
Posted
- Physical column name: Posted
- Property Name: posted
- Reference: List
- Default value: N
List values: All_Posted Status
The allowed values for this list are:
- N (Post)
- Y (Unpost)
- b (Post: Not Balanced)
- c (Post: Not Convertible (no rate))
- p (Post: Period Closed)
- y (Post: Post Prepared)
- i (Post: Invalid Account)
- E (Post: Error)
- NC (Post: Cost Not Calculated)
- AD (Post: No Accounting Date)
- T (Post: Table Disabled)
- C (Post: Error, No cost)
- d (Post: Disabled For Background)
- L (Post: Document Locked)
- NO (Post: No Related PO)
- D (Post: Document Disabled): Document disabled for accounting
Posting Type
- Physical column name: PostingType
- Property Name: postingType
- Reference: List
List values: All_Posting Type
The allowed values for this list are:
- B (Budget): Budget Postings
- E (Encumbrance): Encumbrance or Commitment Postings
- S (Statistical): Statistical Postings
- A (Actual): Actual Postings
- Physical column name: IsPrinted
- Property Name: print
- Reference: YesNo
- Default value: N
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
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: OBUISEL_Selector Reference
Foreign key column to C_Project table, (column: C_Project_ID)
Rate
- Physical column name: CurrencyRate
- Property Name: rate
- Reference: General Quantity
- Default value: 0
Sales Campaign
- Physical column name: C_Campaign_ID
- Property Name: salesCampaign
- Reference: OBUISEL_Selector Reference
Foreign key column to C_Campaign table, (column: C_Campaign_ID)
Total Credit Amount
- Physical column name: TotalCr
- Property Name: totalCreditAmount
- Reference: Amount
- Default value: 0
Total Debit Amount
- Physical column name: TotalDr
- Property Name: totalDebitAmount
- Reference: Amount
- Default value: 0
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):
- GL_JOURNAL_JOURNALBATCH_IDX Not Unique. Columns:
- GL_JOURNALBATCH_ID
- GL_JOURNAL_POSTED Not Unique. Columns:
- POSTED
Check Constraints
These are the check constraints for this table:
- GL_JOURNAL_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- GL_JOURNAL_ISAPPROVED_CHECK: ISAPPROVED IN ('Y', 'N')
- GL_JOURNAL_ISPRINTED_CHECK: ISPRINTED IN ('Y', 'N')
- GL_JOURNAL_MULTI_GL_CHECK: MULTI_GL IN ('Y', 'N')
- GL_JOURNAL_MULTIACCT_CHECK: MULTI_GL = 'Y' AND C_ACCTSCHEMA_ID IS NULL OR MULTI_GL = 'N' AND C_ACCTSCHEMA_ID IS NOT NULL
- GL_JOURNAL_PROCESSED_CHECK: PROCESSED IN ('Y', 'N')