ERP/2.50/Developers Guide/Database Model/org.openbravo.model.financialmgmt.gl/GL JournalLine
GL_JournalLine
The GL Journal Line Tab defines the individual debit and credit transactions that comprise a journal.
- Name:FinancialMgmtGLJournalLine
- Classname:GLJournalLine
This table contains the following columns:
Name | Nullable | Data Type | Description |
GL_JournalLine_ID | N | VARCHAR2(32) | General Ledger Journal Line |
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 |
GL_Journal_ID | N | VARCHAR2(32) | One transaction with a debit and credit and entered into the general ledger. |
Line | N | NUMBER(10, 0) | A line stating the position of this request in the document. |
IsGenerated | N | CHAR(1) | This Line is generated |
Description | Y | NVARCHAR2(255) | A space to write additional related information. |
AmtSourceDr | N | NUMBER | The amount debited from the account, given in provider currency. |
AmtSourceCr | N | NUMBER | The amount credited from the account, given in provider currency. |
C_Currency_ID | N | VARCHAR2(32) | An accepted medium of monetary exchange that may vary across countries. |
CurrencyRateType | N | VARCHAR2(60) | A distinct currency rate characteristic used for processes. |
CurrencyRate | N | NUMBER | The percentage to be multiplied by the source to arrive at the tax or exchange amount. |
DateAcct | Y | DATE | The date this transaction is recorded for in the general ledger. |
AmtAcctDr | N | NUMBER | The amount debited to an account, converted to the organization default currency. |
AmtAcctCr | N | NUMBER | The amount credited to an account, converted to the organization default currency. |
C_UOM_ID | Y | VARCHAR2(32) | A non monetary unit of measure. |
Qty | Y | NUMBER | The number of a certain item. |
C_ValidCombination_ID | N | VARCHAR2(32) | An identification code comprised of an individual account number and additional dimensions such organization, product, and business partner. |
C_Debt_Payment_ID | Y | VARCHAR2(32) | A obligation to pay or a right to collect for a specified item or service. |
C_Withholding_ID | Y | VARCHAR2(32) | Withholding |
C_Tax_ID | Y | VARCHAR2(32) | The percentage of money requested by the government for this specified product or transaction. |
Other Info
Check constraints
These are the check constraints for this table:
- GL_JOURNALLINE_C_TAX_ID_CHK: (C_TAX_ID IS NULL) OR (C_WITHHOLDING_ID IS NULL)
- GL_JOURNALLINE_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- GL_JOURNALLINE_ISGENERATED_CHK: ISGENERATED 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_JOURNALENTRY_KEY
Columns
Journal Line
The General Ledger Journal Line identifies a single transaction in a journal.
- Physical column name: GL_JournalLine_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)
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'
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)
Journal Entry
- Physical column name: GL_Journal_ID
- Property Name: journalEntry
- Reference: Search
- This column is a child for a buisiness object (is Parent)
Foreign key column to GL_Journal table, (column: GL_Journal_ID)
Line No.
Indicates the unique line for a document. It will also control the display order of the lines within a document.
- Physical column name: Line
- Property Name: lineNo
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM GL_JournalLine WHERE GL_Journal_ID=@GL_Journal_ID@
- This column is part of the table's identifier
Generated
The Generated checkbox identifies a journal line that was generated from a source document. Lines could also be entered manually or imported.
- Physical column name: IsGenerated
- Property Name: generated
- Reference: YesNo
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
- Default value: @DESCRIPTION1@
Foreign Currency Debit
The Source Debit Amount indicates the credit amount for this line in the source currency.
- Physical column name: AmtSourceDr
- Property Name: foreignCurrencyDebit
- Reference: Amount
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt Java class.
Foreign Currency Credit
The Source Credit Amount indicates the credit amount for this line in the source currency.
- Physical column name: AmtSourceCr
- Property Name: foreignCurrencyCredit
- Reference: Amount
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt 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)
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt Java class.
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.
- Physical column name: CurrencyRateType
- Property Name: currencyRateType
- Reference: List
- Default value: S
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt Java class.
List values: C_Conversion_Rate Types
The allowed values for this list are:
- A (Average): Average Rates
- C (Company): Company Rate
- F (Fixed): Euro Fixed Currency
- M (Manual Rate): Manual Rate
- N (None): No Conversion Rate
- P (Period End): Period Conversion Type
- S (Spot): Spot Conversation Rate Type
- U (User Type): User Rate Type
Rate
The Currency Conversion Rate indicates the rate to use when converting the source currency to the accounting currency
- Physical column name: CurrencyRate
- Property Name: rate
- Reference: Number
- Default value: 1
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt 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: @DateAcct@
Callout: SL_JournalLineAmt
This element is linked to a callout.
It is implemented by org.openbravo.erpCommon.ad_callouts.SL_JournalLineAmt Java class.
Debit
The Account Debit Amount indicates the transaction amount converted to this organization's accounting currency
- Physical column name: AmtAcctDr
- Property Name: debit
- Reference: Amount
Credit
The Account Credit Amount indicates the transaction amount converted to this organization's accounting currency
- Physical column name: AmtAcctCr
- Property Name: credit
- Reference: Amount
UOM
- Physical column name: C_UOM_ID
- Property Name: uOM
- Reference: TableDir
Foreign key column to C_UOM table, (column: C_UOM_ID)
Quantity
The Quantity indicates the number of a specific product or item for this document.
- Physical column name: Qty
- Property Name: quantity
- Reference: Quantity
Accounting Combination
- Physical column name: C_ValidCombination_ID
- Property Name: accountingCombination
- Reference: Search
Foreign key column to C_ValidCombination table, (column: C_ValidCombination_ID)
Payment
- Physical column name: C_Debt_Payment_ID
- Property Name: payment
- Reference: Search
Foreign key column to C_Debt_Payment table, (column: C_Debt_Payment_ID)
Withholding
- Physical column name: C_Withholding_ID
- Property Name: withholding
- Reference: TableDir
Foreign key column to C_Withholding table, (column: C_Withholding_ID)
Tax
- Physical column name: C_Tax_ID
- Property Name: tax
- Reference: TableDir
- Default value: ""
Foreign key column to C_Tax table, (column: C_Tax_ID)