Table a_ep_document_payment
Diagram AccountsPayable 
Description:
This table links the different EP payments to actual invoices and credit notes.
PRIMARY KEY
a_ap_document_id_i
integer default: 0 NOT NULL
AP Document ref a_ap_document

a_ledger_number_i
integer default: 0 NOT NULL
The ledger that the attribute value is associated with. a_ledger, a_ep_payment
a_payment_number_i
integer default: 0 NOT NULL
Unique number to identify each payment batch. a_ep_payment
a_amount_n
numeric (24, 10)
The amount of money that was paid
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_ep_document_payment_fk1: a_ledger_number_i => a_ledger
a_ep_document_payment_fk2: a_ap_document_id_i => a_ap_document
a_ep_document_payment_fk3: a_ledger_number_i;a_payment_number_i => a_ep_payment
a_ep_document_payment_fkcr: s_created_by_c => s_user
a_ep_document_payment_fkmd: s_modified_by_c => s_user