View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

ERP/2.50/Developers Guide/Database Model/org.openbravo.model.financialmgmt.gl/GL Journal

Contents

GL_Journal

The GL Journal Tab defines the control parameters for a single GL Journal.

This table contains the following columns:

Name Nullable Data Type Description
GL_Journal_ID NVARCHAR2(32)One transaction with a debit and credit and entered into the general ledger.
AD_Client_ID NVARCHAR2(32)Client for this installation.
AD_Org_ID NVARCHAR2(32)Organizational entity within client
IsActive NCHAR(1)A flag indicating whether this record is available for use or de-activated.
Created NDATEThe date that this record is completed.
CreatedBy NVARCHAR2(32)User who created this records
Updated NDATEx not implemented
UpdatedBy NVARCHAR2(32)User who updated this records
User1_ID YVARCHAR2(32)A display of optional elements that are previously defined for this account combination.
User2_ID YVARCHAR2(32)A display of optional elements that are previously defined for this account combination.
C_Campaign_ID YVARCHAR2(32)An advertising effort aimed at increasing sales.
C_Project_ID YVARCHAR2(32)Identifier of a project defined within the Project & Service Management module.
C_AcctSchema_ID NVARCHAR2(32)The structure used in accounting including costing methods, currencies, and the calendar.
C_DocType_ID NVARCHAR2(32)A value defining what sequence and process setup are used to handle this document.
DocumentNo NNVARCHAR2(30)An often automatically generated identifier for all documents.
DocStatus NVARCHAR2(60)The Document Status indicates the status of a document at this time.
DocAction NVARCHAR2(60)A means of changing the transaction status of the document.
IsApproved NCHAR(1)Indicates if this document requires approval
IsPrinted YCHAR(1)A reference stating whether or not the document has been printed at any time in the past.
Description NNVARCHAR2(255)A space to write additional related information.
PostingType NVARCHAR2(60)A distinct posting amount characteristic used for processes and sometimes grouped within a category.
GL_Category_ID NVARCHAR2(32)A classification used to group lines in the general ledger.
DateDoc NDATEThe time listed on the document.
DateAcct NDATEThe date this transaction is recorded for in the general ledger.
C_Period_ID NVARCHAR2(32)A specified time period.
C_Currency_ID YVARCHAR2(32)An accepted medium of monetary exchange that may vary across countries.
CurrencyRateType NVARCHAR2(60)A distinct currency rate characteristic used for processes.
CurrencyRate NNUMBERThe percentage to be multiplied by the source to arrive at the tax or exchange amount.
GL_JournalBatch_ID YVARCHAR2(32)General Ledger Journal Batch
TotalDr NNUMBERTotal debit in document currency
TotalCr NNUMBERTotal Credit in document currency
ControlAmt YNUMBERIf not zero, the Debit amount of the document must be equal this amount
Processing YCHAR(1)A request to process the respective document or task.
Processed YCHAR(1)A confirmation that the associated documents or requests are processed.
Posted NVARCHAR2(60)An accounting status button that indicates if the transaction has already been posted to the general ledger or not.
IsOpening NCHAR(1)A flag indicating this is an opening entry

Other Info

Check constraints

These are the check constraints for this table:

top

Indexes

These are the indexes for this table (for each index there is a list of all the columns included within it):

Unique

top

Columns

Journal Entry

The General Ledger Journal identifies a group of journal lines which represent a logical business transaction

top

Client

Foreign key column to AD_Client table, (column: AD_Client_ID)

top

Organization

Foreign key column to AD_Org table, (column: AD_Org_ID)


Validation Rule AD_Org show child organizations: It only shows the child organizations of the organization's header. With the following code:

 
AD_ISORGINCLUDED(ad_org.ad_org_id, @AD_ORG_ID@, ad_org.ad_client_id)<>-1 AND IsReady='Y'

top

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.

top

Creation Date

The Created field indicates the date that this record was created.

top

Created By

Foreign key column to AD_User table, (column: AD_User_ID)

top

Updated

The Updated field indicates the date that this record was updated.

top

Updated By

Foreign key column to AD_User table, (column: AD_User_ID)

top

1st Dimension

The user defined element displays the optional elements that have been defined for this account combination.

top

2nd Dimension

The user defined element displays the optional elements that have been defined for this account combination.

top

Sales Campaign

Foreign key column to C_Campaign table, (column: C_Campaign_ID)

top

Project

Foreign key column to C_Project table, (column: C_Project_ID)

top

Accounting Schema

Foreign key column to C_AcctSchema table, (column: C_AcctSchema_ID)


Validation Rule C_AcctSchema - Schemas matching parent organizations: null. 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))

top

Document Type

Foreign key column to C_DocType table, (column: C_DocType_ID)


Validation Rule C_DocType Journals: Document Type Journal. With the following code:

 
C_DocType.DocBaseType='GLJ' AND AD_ISORGINCLUDED( @AD_Org_ID@, C_DocType.AD_Org_ID, @#AD_Client_ID@) <> '-1'

top

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).

top

Document Status

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.

List values: All_Document Status

The allowed values for this list are:

top

Document Action


You find the current status in the Document Status field. The options are listed in a popup

top

Approved

The Approved checkbox indicates if this document requires approval before it can be processed.

top

Print

The Printed checkbox indicates if this document or line will included when printing.

top

Description

A description is limited to 255 characters.

top

Posting Type

The Posting Type indicates the type of amount (Actual, Encumbrance, Budget) this journal updated.

List values: All_Posting Type

The allowed values for this list are:

top

G/L Category

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'

top

Document Date

The Document Date indicates the date the document was generated. It may or may not be the same as the accounting 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.

top

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.

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.

top

Period

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.

top

Currency

Foreign key column to C_Currency table, (column: C_Currency_ID)

top

Currency Rate Type

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.

List values: C_Conversion_Rate Types

The allowed values for this list are:

top

Rate

The Currency Conversion Rate indicates the rate to use when converting the source currency to the accounting currency

top

Journal Batch

Foreign key column to GL_JournalBatch table, (column: GL_JournalBatch_ID)

top

Total Debit Amount

The Total Debit indicates the total debit amount for a journal or journal batch in the source currency

top

Total Credit Amount

The Total Credit indicates the total credit amount for a journal or journal batch in the source currency

top

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.

top

Process Now

When this field is set as 'Y' a process is being performed on this record.

top

Processed

The Processed checkbox indicates that a document has been processed.

top

Posted

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.

top

Opening

A flag indicating this is an opening entry

top

Retrieved from "http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Database_Model/org.openbravo.model.financialmgmt.gl/GL_Journal"

This page has been accessed 2,334 times. This page was last modified on 2 July 2011, at 20:56. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.