ERP/3.0/Developers Guide/Database Model/org.openbravo.model.financialmgmt.gl/GL JournalBatch
GL_JournalBatch
- Name:GL_JournalBatch
- Classname:FinancialMgmtGLBatch
This table contains the following columns:
Name | Nullable | Data Type | Description
|
DateAcct | Yes | 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. |
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. |
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. |
CopyFrom | Yes | CHAR (1) | Copy lines (products) from another document of the same type. |
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. |
Description | No | NVARCHAR (255) | A description is limited to 255 characters. |
DateDoc | Yes | 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). |
GL_Category_ID | Yes | VARCHAR (32) | The General Ledger Category is an optional, user defined method of grouping journal lines. |
GL_JournalBatch_ID | No | VARCHAR (32) | The General Ledger Journal Batch identifies a group of journals to be processed as a group. |
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 | Yes | VARCHAR (32) | The Period indicates an exclusive range of dates for a calendar. |
PostingType | No | VARCHAR (60) | The Posting Type indicates the type of amount (Actual, Encumbrance, Budget) this journal updated. |
Processing | No | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Processed | No | CHAR (1) | The Processed checkbox indicates that a document has been processed. |
IsTemplate | Yes | CHAR (1) | Template is checked when the element is used as a template. |
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
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.
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
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
Copy from
- Physical column name: CopyFrom
- Property Name: copyFrom
- Reference: Button
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)
Description
- Physical column name: Description
- Property Name: description
- Reference: String
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 [2] Java Class.
Document No.
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
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: 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)
Callout: SL_Journal_Period
This column has a callout associated.
It is implemented by [3] 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 [4] Java Class.
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
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
- Default value: N
Processed
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
- Default value: N
Template
- Physical column name: IsTemplate
- Property Name: template
- Reference: YesNo
- Default value: N
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
Check Constraints
These are the check constraints for this table:
- GL_JOURNALBATCH_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- GL_JOURNALBATCH_PROCESSED_CHK: PROCESSED IN ('Y', 'N')
- GL_JOURNALBATCH_PROCESSING_CHK: PROCESSING IN ('Y', 'N')