ERP/2.50/Developers Guide/Database Model/org.openbravo.model.financialmgmt.gl/GL JournalBatch
GL_JournalBatch
The GL Journal Batch Tab defines the control parameters for a Journal Batch. A Batch can consist of multiple Journals.
- Name:FinancialMgmtGLBatch
- Classname:GLBatch
This table contains the following columns:
Name | Nullable | Data Type | Description |
GL_JournalBatch_ID | N | VARCHAR2(32) | General Ledger Journal Batch |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
DocumentNo | N | NVARCHAR2(30) | An often automatically generated identifier for all documents. |
Description | N | NVARCHAR2(255) | A space to write additional related information. |
PostingType | N | VARCHAR2(60) | A distinct posting amount characteristic used for processes and sometimes grouped within a category. |
GL_Category_ID | Y | VARCHAR2(32) | A classification used to group lines in the general ledger. |
DateDoc | Y | DATE | The time listed on the document. |
DateAcct | Y | DATE | The date this transaction is recorded for in the general ledger. |
C_Period_ID | Y | VARCHAR2(32) | A specified time period. |
C_Currency_ID | Y | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
TotalDr | N | NUMBER | Total debit in document currency |
TotalCr | N | NUMBER | Total Credit in document currency |
ControlAmt | Y | NUMBER | If not zero, the Debit amount of the document must be equal this amount |
Processing | N | CHAR(1) | A request to process the respective document or task. |
Processed | N | CHAR(1) | A confirmation that the associated documents or requests are processed. |
CopyFrom | Y | CHAR(1) | An addition of statements from pre-existing documents. |
IsTemplate | Y | CHAR(1) | Is Template |
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')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- GL_JOURNALBATCH_DOCNO
- GL_JOURNALBATCH_KEY
Columns
Journal Batch
The General Ledger Journal Batch identifies a group of journals to be processed as a group.
- Physical column name: GL_JournalBatch_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
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.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Document No.
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).
- Physical column name: DocumentNo
- Property Name: documentNo
- Reference: String
- This column is part of the table's identifier
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
Posting Type
The Posting Type indicates the type of amount (Actual, Encumbrance, Budget) this journal updated.
- Physical column name: PostingType
- Property Name: postingType
- Reference: List
- Default value: A
List values: All_Posting Type
The allowed values for this list are:
- A (Actual): Actual Postings
- B (Budget): Budget Postings
- E (Encumbrance): Encumbrance or Commitment Postings
- S (Statistical): Statistical Postings
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)
Validation Rule GL_Category for Manual Journals: Manual Journal GL Category. With the following code:
GL_Category.CategoryType='M'
Document Date
The Document Date indicates the date the document was generated. It may or may not be the same as the accounting date.
- Physical column name: DateDoc
- Property Name: documentDate
- Reference: Date
- Default value: @#Date@
Callout: SL_Journal_Period
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Journal_Period Java class.
Accounting Date
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.
- Physical column name: DateAcct
- Property Name: accountingDate
- Reference: Date
- Default value: @#Date@
Callout: SL_Journal_Period
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Journal_Period 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)
Reference Table C_Period (Open) With the following where clause:
EXISTS (SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID=pc.C_Period_ID AND pc.PeriodStatus='O')
Callout: SL_Journal_Period
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_Journal_Period Java class.
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
- Default value: @$C_Currency_ID@
Foreign key column to C_Currency table, (column: C_Currency_ID)
Total Debit Amount
The Total Debit indicates the total debit amount for a journal or journal batch in the source currency
- Physical column name: TotalDr
- Property Name: totalDebitAmount
- Reference: Amount
Total Credit Amount
The Total Credit indicates the total credit amount for a journal or journal batch in the source currency
- Physical column name: TotalCr
- Property Name: totalCreditAmount
- Reference: Amount
Control Amount
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.
- Physical column name: ControlAmt
- Property Name: controlAmount
- Reference: Amount
Process Now
When this field is set as 'Y' a process is being performed on this record.
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Processed
The Processed checkbox indicates that a document has been processed.
- Physical column name: Processed
- Property Name: processed
- Reference: YesNo
Copy from
Copy lines (products) from another document of the same type.
- Physical column name: CopyFrom
- Property Name: copyFrom
- Reference: Button
Template
Template is checked when the element is used as a template.
- Physical column name: IsTemplate
- Property Name: template
- Reference: YesNo
- Default value: N