Table a_ap_payment |
Description: Records all payments that have been made against an accounts payable detail. |
PRIMARY KEY | ||
a_ledger_number_i
integer default: 0 NOT NULL | This is used as a key field in most of the accounting system files | a_ledger, a_account |
a_payment_number_i
integer default: 0 NOT NULL | Unique number to identify each payment batch. | |
a_amount_n
numeric (24, 10) | The amount of money that was paid | |
a_currency_code_c
varchar (16) NOT NULL | the currency of the document | |
a_exchange_rate_to_base_n
numeric (24, 10) | The exchange rate to the base currency at the time of payment. | |
a_payment_date_d
date | Date that the payment for an accounts payable was made. | |
s_user_id_c
varchar (20) | This is the system user id of the person who made the payment. | s_user |
a_method_of_payment_c
varchar (20) | Method that was used to make the payment - cheque, cash, ep, credit card, etc. | |
a_reference_c
varchar (100) | The source or reference for the accounts payable payment. This could be a cheque number. | |
a_bank_account_c
varchar (16) NOT NULL | Bank account from which to make the payment | a_account |
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_ap_payment_fk1: a_ledger_number_i => a_ledger a_ap_payment_fk2: s_user_id_c => s_user a_ap_payment_fk3: a_ledger_number_i;a_bank_account_c => a_account a_ap_payment_fkcr: s_created_by_c => s_user a_ap_payment_fkmd: s_modified_by_c => s_user | ||
REFERENCED BY a_ap_document_payment | ||