Table openpetra_trunk.public.a_transaction
Detailed information for each debit and credit in a general ledger journal.

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_trans_anal_attrib.a_ledger_number_i a_trans_anal_attrib_fk1 R
a_cost_centre.a_ledger_number_i a_transaction_fk4 R
a_journal.a_ledger_number_i a_transaction_fk1 R
a_batch.a_ledger_number_i a_transaction_fk2 R
a_account.a_ledger_number_i a_transaction_fk3 R
This is used as a key field in most of the accounting system files
a_batch_number_i int4 10 0
a_trans_anal_attrib.a_batch_number_i a_trans_anal_attrib_fk1 R
a_journal.a_batch_number_i a_transaction_fk1 R
a_batch.a_batch_number_i a_transaction_fk2 R
identifes which batch a transaction belongs to
a_journal_number_i int4 10 0
a_trans_anal_attrib.a_journal_number_i a_trans_anal_attrib_fk1 R
a_journal.a_journal_number_i a_transaction_fk1 R
a_transaction_number_i int4 10 0
a_trans_anal_attrib.a_transaction_number_i a_trans_anal_attrib_fk1 R
Identifies a transaction within a journal within a batch within a ledger
a_account_code_c varchar 16
a_account.a_account_code_c a_transaction_fk3 R
This identifies the account the financial transaction must be stored against
a_primary_account_code_c varchar 16  √  null This identifies the account the financial transaction must be stored against [NOT USED]
a_cost_centre_code_c varchar 24
a_cost_centre.a_cost_centre_code_c a_transaction_fk4 R
This identifies which cost centre an account is applied to
a_primary_cost_centre_code_c varchar 24  √  null This identifies which cost centre an account is applied to [NOT USED]
a_transaction_date_d date 13 ('now'::text)::date Date the transaction took place
a_transaction_amount_n numeric 24,10 0 This is a number of currency units
a_amount_in_base_currency_n numeric 24,10 0 This is a number of currency units
a_analysis_indicator_l bool 1 false Used to get a yes no response from the user
a_reconciled_status_l bool 1 false shows if the transaction has been reconciled or not
a_narrative_c varchar 160  √  null
a_debit_credit_indicator_l bool 1 true
a_transaction_status_l bool 1  √  false Has a transaction been posted yet
a_header_number_i int4 10  √  0 The header (eg, cashbook #) that the transaction is associated with. [NOT USED]
a_detail_number_i int4 10  √  0 The detail (within the header) that the transaction is associated with. [NOT USED]
a_sub_type_c varchar 16  √  null
a_to_ilt_flag_l bool 1  √  false Indicates whether the ILT transaction has been transferred to transaction for ILT file.
a_source_flag_l bool 1  √  false To flag a transaction as having come from a source ledger and been processed in an ilt processing centre
a_reference_c varchar 100  √  null Reference number/code for the transaction
a_source_reference_c varchar 100  √  null Transaction key which initiated an ILT transaction
a_system_generated_l bool 1  √  false Was this transaction generated automatically by the system?
a_amount_in_intl_currency_n numeric 24,10  √  0 The transaction amount in the second base currency.
a_ich_number_i int4 10 0 identifes the ICH process number
a_key_ministry_key_n numeric 10  √  null
p_unit.p_partner_key_n a_transaction_fk5 R
Key ministry to which this transaction applies (just for fund transfers)
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_transaction_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_transaction_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 78.117 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 + a_transaction_number_i Primary key Asc/Asc/Asc/Asc a_transaction_pk
a_ledger_number_i + a_account_code_c + a_cost_centre_code_c + a_transaction_date_d Performance Asc/Asc/Asc/Asc a_account_k0
a_ledger_number_i + a_batch_number_i + a_journal_number_i Performance Asc/Asc/Asc inx_a_transaction_fk1_key1
a_ledger_number_i + a_batch_number_i Performance Asc/Asc inx_a_transaction_fk2_key2
a_ledger_number_i + a_account_code_c Performance Asc/Asc inx_a_transaction_fk3_key3
a_ledger_number_i + a_cost_centre_code_c Performance Asc/Asc inx_a_transaction_fk4_key4
a_key_ministry_key_n Performance Asc inx_a_transaction_fk5_key5
s_created_by_c Performance Asc inx_a_transaction_fkcr_key6
s_modified_by_c Performance Asc inx_a_transaction_fkmd_key7
a_ledger_number_i + a_batch_number_i + a_journal_number_i + a_transaction_number_i Must be unique Asc/Asc/Asc/Asc inx_a_transaction_pk0

Close relationships  within of separation: