Table openpetra_trunk.public.a_previous_year_batch
GL batches from the previous financial year.

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_previous_year_journal.a_ledger_number_i a_previous_year_journal_fk1 R
a_ledger.a_ledger_number_i a_previous_year_batch_fk1 R
a_accounting_period.a_ledger_number_i a_previous_year_batch_fk2 R
The ledger that the batch belongs to.
a_batch_number_i int4 10 0
a_previous_year_journal.a_batch_number_i a_previous_year_journal_fk1 R
identifes which batch a transaction belongs to
a_batch_description_c varchar 160  √  null This is a long description and is 80 characters long.
a_batch_control_total_n numeric 24,10  √  0 Raw total amount of the batch. If the journals within the batch have different currencies, this is just a raw numeric sum of all the journal amounts. It does not reflect a monetary value in a specific currency. Entered by the user.
a_batch_running_total_n numeric 24,10 0 Running total amount of the batch calculated as transactions are enterd. If the journals within the batch have different currencies, this is just a raw numeric sum of all the journal amounts. It does not reflect a monetary value in a specific currency.
a_batch_debit_total_n numeric 24,10 0 Raw debit total amount of the batch. If the journals within the batch have different currencies, this is just a raw numeric sum of all the journal amounts. It does not reflect a monetary value in a specific currency.
a_batch_credit_total_n numeric 24,10 0 Raw credit total amount of the batch. If the journals within the batch have different currencies, this is just a raw numeric sum of all the journal amounts. It does not reflect a monetary value in a specific currency.
a_batch_period_i int4 10 0
a_accounting_period.a_accounting_period_number_i a_previous_year_batch_fk2 R
The accounting period that the batch belongs to. Must be less than or equal to 20.
a_batch_year_i int4 10 The financial year that the batch belongs to.
a_date_effective_d date 13 ('now'::text)::date Date the batch comes into effect
a_date_of_entry_d date 13 ('now'::text)::date Date the batch comes into effect
a_batch_status_c varchar 24  √  'Posted'::character varying Has this batch been posted yet?
a_last_journal_i int4 10 0 Identifies a journal within a batch
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_previous_year_batch_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_previous_year_batch_fkmd R
s_modification_id_c varchar 150  √  null

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

Indexes:
Column(s) Type Sort Constraint Name
a_ledger_number_i + a_batch_number_i Primary key Asc/Asc a_previous_year_batch_pk
a_ledger_number_i Performance Asc inx__previous_year_batch_fk1_key1
a_ledger_number_i + a_batch_period_i Performance Asc/Asc inx__previous_year_batch_fk2_key2
a_ledger_number_i + a_batch_number_i Must be unique Asc/Asc inx_a_previous_year_batch_pk0
s_created_by_c Performance Asc inx_previous_year_batch_fkcr_key3
s_modified_by_c Performance Asc inx_previous_year_batch_fkmd_key4

Close relationships  within of separation: