Table a_journal
Description:
Holds details of each general ledger journal, which contains a group of transactions.
PRIMARY KEY
a_ledger_number_i
integer default: 0 NOT NULL
The journal belongs to this ledger. a_batch, a_transaction_type
a_batch_number_i
integer default: 0 NOT NULL
identifes which batch the journal belongs to. a_batch
a_journal_number_i
integer NOT NULL
Identifies a journal within a batch

a_journal_description_c
varchar (160) NOT NULL
This is a long description and is 80 characters long.
a_journal_debit_total_n
numeric (24, 10) default: 0 NOT NULL
This is a number of currency units in the currency of the transaction.
a_journal_credit_total_n
numeric (24, 10) default: 0 NOT NULL
This is the number of currency units in the currency of the transaction.
a_journal_period_i
integer default: 0 NOT NULL
This defines which accounting period is being used
a_date_effective_d
date default: CURRENT_DATE NOT NULL
Date the journal comes into effect.
a_transaction_type_code_c
varchar (16)
Which type of journal is this? Eg. STD, ALLOC, REALLOC, REVAL. a_transaction_type
a_last_transaction_number_i
integer default: 0 NOT NULL
The number of the last transaction within the journal.
a_sub_system_code_c
varchar (24) NOT NULL
Indicates the sub system of accounts that the journal belongs to. Eg. GL, AP, GR a_transaction_type
a_journal_status_c
varchar (24) default: 'Unposted'
Has a journal been posted yet
a_transaction_currency_c
varchar (16) NOT NULL
This defines which currency is being used a_currency
a_base_currency_c
varchar (16)
a_currency
a_exchange_rate_to_base_n
numeric (24, 10) default: 0 NOT NULL
The rate of exchange from the transaction currency (in a_transaction_currency_c) to the ledger base currency.
a_exchange_rate_time_i
integer default: 0 NOT NULL
The time component of the exchange rate.
a_date_of_entry_d
date default: CURRENT_DATE NOT NULL
Date the journal was created.
a_reversed_l
boolean default: '0'
Indicates whether or not a journal has been reversed.
s_date_created_d
date default: CURRENT_DATE
The date the record was created.
s_created_by_c
varchar (20)
User ID of who created this record. s_user
s_date_modified_d
date
The date the record was modified.
s_modified_by_c
varchar (20)
User ID of who last modified this record. s_user
s_modification_id_t
timestamp
This identifies the current version of the record.


FOREIGN KEY
a_journal_fk1: a_ledger_number_i;a_batch_number_i => a_batch
a_journal_fk3: a_ledger_number_i;a_sub_system_code_c;a_transaction_type_code_c => a_transaction_type
a_journal_fk4: a_transaction_currency_c => a_currency
a_journal_fk5: a_base_currency_c => a_currency
a_journal_fkcr: s_created_by_c => s_user
a_journal_fkmd: s_modified_by_c => s_user


REFERENCED BY
a_transaction, a_trans_anal_attrib