Table a_batch |
Description: Store current and forward period general ledger batches for a ledger. |
PRIMARY KEY | ||
a_ledger_number_i
integer default: 0 NOT NULL | The ledger that the batch belongs to. | a_ledger |
a_batch_number_i
integer default: 0 NOT NULL | Identifies the batch. | |
a_batch_description_c
varchar (160) | This is a long description and is 80 characters long. | |
a_batch_control_total_n
numeric (24, 10) default: 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) default: 0 NOT NULL | 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) default: 0 NOT NULL | 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) default: 0 NOT NULL | 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
integer default: 0 NOT NULL | This identifies which accounting period that the batch belongs to. | |
a_batch_year_i
integer default: 0 | The number of the accounting year | |
a_date_effective_d
date default: CURRENT_DATE NOT NULL | Date the batch comes into effect | |
a_date_of_entry_d
date default: CURRENT_DATE NOT NULL | Date the batch was created. | |
a_batch_status_c
varchar (24) default: 'Unposted' | Has this batch been posted yet? | |
a_last_journal_i
integer default: 0 NOT NULL | Identifies a journal within a batch | |
a_gift_batch_number_i
integer | Number of the originating gift batch that generated this GL batch. | |
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 default: CURRENT_TIMESTAMP | This identifies the current version of the record. | |
FOREIGN KEY a_batch_fk1: a_ledger_number_i => a_ledger a_batch_fkcr: s_created_by_c => s_user a_batch_fkmd: s_modified_by_c => s_user | ||
REFERENCED BY a_revaluation, a_journal, a_transaction, a_trans_anal_attrib | ||