Table openpetra_trunk.public.a_batch
Store current and forward period general ledger batches for a ledger.

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_journal.a_ledger_number_i a_journal_fk1 R
a_trans_anal_attrib.a_ledger_number_i a_trans_anal_attrib_fk6 R
a_transaction.a_ledger_number_i a_transaction_fk2 R
a_ledger.a_ledger_number_i a_batch_fk1 R
The ledger that the batch belongs to.
a_batch_number_i int4 10 0
a_journal.a_batch_number_i a_journal_fk1 R
a_trans_anal_attrib.a_batch_number_i a_trans_anal_attrib_fk6 R
a_transaction.a_batch_number_i a_transaction_fk2 R
Identifies the batch.
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 This identifies which accounting period that the batch belongs to.
a_batch_year_i int4 10  √  0 The number of the accounting year
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 was created.
a_batch_status_c varchar 24  √  'Unposted'::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_batch_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_batch_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 2.414 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_batch_pk
a_ledger_number_i Performance Asc inx_a_batch_fk1_key1
s_created_by_c Performance Asc inx_a_batch_fkcr_key2
s_modified_by_c Performance Asc inx_a_batch_fkmd_key3
a_ledger_number_i + a_batch_number_i Must be unique Asc/Asc inx_a_batch_pk0

Close relationships  within of separation: