Table a_gift_batch
Description:
Information describing groups (batches) of gifts.
PRIMARY KEY
a_ledger_number_i
integer default: 0 NOT NULL
ledger number a_ledger, a_account, a_cost_centre
a_batch_number_i
integer default: 0 NOT NULL
Gift batch number

a_batch_description_c
varchar (80) NOT NULL
gift batch description
s_modification_date_d
date default: CURRENT_DATE
date of user entry or last modification.
a_hash_total_n
numeric (24, 10) default: 0
hash total for the gift batch
a_batch_total_n
numeric (24, 10) default: 0
total for the gift batch
a_bank_account_code_c
varchar (16) NOT NULL
bank account code which this batch is for a_account
a_last_gift_number_i
integer default: 0
last gift number of the batch
a_batch_status_c
varchar (16) default: 'Unposted'
Status of a gift batch: Unposted, Posted, Cancelled.
a_batch_period_i
integer default: 0 NOT NULL
The accounting period that the batch belongs to. Must be <= 20.
a_batch_year_i
integer NOT NULL
The financial year that the batch belongs to.
a_gl_effective_date_d
date default: CURRENT_DATE NOT NULL
Effective date when posted to the general ledger.
a_currency_code_c
varchar (16) NOT NULL
This defines which currency is being used a_currency
a_exchange_rate_to_base_n
numeric (24, 10) default: 0 NOT NULL
The rate of exchange
a_bank_cost_centre_c
varchar (24) NOT NULL
This identifies which cost centre is applied to the bank a_cost_centre
a_gift_type_c
varchar (16) default: 'Gift' NOT NULL
What type of gift is this? a gift or a gift in kind generally
a_method_of_payment_code_c
varchar (16)
This is how the partner paid. EgCash, Cheque etc
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
This identifies the current version of the record.


FOREIGN KEY
a_gift_batch_fk1: a_ledger_number_i => a_ledger
a_gift_batch_fk2: a_ledger_number_i;a_bank_account_code_c => a_account
a_gift_batch_fk3: a_ledger_number_i;a_bank_cost_centre_c => a_cost_centre
a_gift_batch_fk4: a_currency_code_c => a_currency
a_gift_batch_fkcr: s_created_by_c => s_user
a_gift_batch_fkmd: s_modified_by_c => s_user


REFERENCED BY
a_gift, a_gift_detail, a_processed_fee