Table openpetra_trunk.public.a_journal
Holds details of each general ledger journal, which contains a group of transactions.

Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
a_ledger_number_i int4 10 0
a_transaction.a_ledger_number_i a_transaction_fk1 R
a_batch.a_ledger_number_i a_journal_fk1 R
a_transaction_type.a_ledger_number_i a_journal_fk3 R
The journal belongs to this ledger.
a_batch_number_i int4 10 0
a_transaction.a_batch_number_i a_transaction_fk1 R
a_batch.a_batch_number_i a_journal_fk1 R
identifes which batch the journal belongs to.
a_journal_number_i int4 10
a_transaction.a_journal_number_i a_transaction_fk1 R
Identifies a journal within a batch
a_journal_description_c varchar 160 This is a long description and is 80 characters long.
a_journal_debit_total_n numeric 24,10 0 This is a number of currency units in the currency of the transaction.
a_journal_credit_total_n numeric 24,10 0 This is the number of currency units in the currency of the transaction.
a_journal_period_i int4 10 0 This defines which accounting period is being used
a_date_effective_d date 13 ('now'::text)::date Date the journal comes into effect.
a_transaction_type_code_c varchar 16  √  null
a_transaction_type.a_transaction_type_code_c a_journal_fk3 R
Which type of journal is this? Eg. STD, ALLOC, REALLOC, REVAL.
a_last_transaction_number_i int4 10 0 The number of the last transaction within the journal.
a_sub_system_code_c varchar 24
a_transaction_type.a_sub_system_code_c a_journal_fk3 R
Indicates the sub system of accounts that the journal belongs to. Eg. GL, AP, GR
a_journal_status_c varchar 24  √  'Unposted'::character varying Has a journal been posted yet
a_transaction_currency_c varchar 16
a_currency.a_currency_code_c a_journal_fk4 R
This defines which currency is being used
a_exchange_rate_to_base_n numeric 24,10 0 The rate of exchange from the transaction currency (in a_transaction_currency_c) to the ledger base currency.
a_exchange_rate_time_i int4 10 0 The time component of the exchange rate.
a_date_of_entry_d date 13 ('now'::text)::date Date the journal was created.
a_reversed_l bool 1  √  false Indicates whether or not a journal has been reversed.
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_journal_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_journal_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 6.562 rows at Do Nov 10 18:00 MEZ 2011

Indexes:
Column(s) Type Sort Constraint Name
a_ledger_number_i + a_batch_number_i + a_journal_number_i Primary key Asc/Asc/Asc a_journal_pk
a_ledger_number_i + a_date_effective_d Performance Asc/Asc a_date_effective_k0
a_ledger_number_i + a_batch_number_i Performance Asc/Asc inx_a_journal_fk1_key1
a_ledger_number_i + a_sub_system_code_c + a_transaction_type_code_c Performance Asc/Asc/Asc inx_a_journal_fk3_key2
a_transaction_currency_c Performance Asc inx_a_journal_fk4_key3
s_created_by_c Performance Asc inx_a_journal_fkcr_key4
s_modified_by_c Performance Asc inx_a_journal_fkmd_key5
a_ledger_number_i + a_batch_number_i + a_journal_number_i Must be unique Asc/Asc/Asc inx_a_journal_pk0

Close relationships  within of separation: