Table openpetra_trunk.public.a_ap_payment
Records all payments that have been made against an accounts payable detail.

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_ap_document_payment.a_ledger_number_i a_ap_document_payment_fk3 R
a_ledger.a_ledger_number_i a_ap_payment_fk1 R
a_account.a_ledger_number_i a_ap_payment_fk3 R
This is used as a key field in most of the accounting system files
a_payment_number_i int4 10 0
a_ap_document_payment.a_payment_number_i a_ap_document_payment_fk3 R
Unique number to identify each payment batch.
a_amount_n numeric 24,10  √  null The amount of money that was paid
a_exchange_rate_to_base_n numeric 24,10  √  null The exchange rate to the base currency at the time of payment.
a_payment_date_d date 13  √  null Date that the payment for an accounts payable was made.
s_user_id_c varchar 20  √  null
s_user.s_user_id_c a_ap_payment_fk2 R
This is the system user id of the person who made the payment.
a_method_of_payment_c varchar 20  √  null Method that was used to make the payment - cheque, cash, ep, credit card, etc.
a_reference_c varchar 100  √  null The source or reference for the accounts payable payment. This could be a cheque number.
a_bank_account_c varchar 16
a_account.a_account_code_c a_ap_payment_fk3 R
Bank account from which to make the payment
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_ap_payment_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_ap_payment_fkmd R
s_modification_id_c varchar 150  √  null

Table contained 17.213 rows at Do Nov 10 18:00 MEZ 2011

Indexes:
Column(s) Type Sort Constraint Name
a_ledger_number_i + a_payment_number_i Primary key Asc/Asc a_ap_payment_pk
a_ledger_number_i Performance Asc inx_a_ap_payment_fk1_key1
s_user_id_c Performance Asc inx_a_ap_payment_fk2_key2
a_ledger_number_i + a_bank_account_c Performance Asc/Asc inx_a_ap_payment_fk3_key3
s_created_by_c Performance Asc inx_a_ap_payment_fkcr_key4
s_modified_by_c Performance Asc inx_a_ap_payment_fkmd_key5
a_ledger_number_i + a_payment_number_i Must be unique Asc/Asc inx_a_ap_payment_pk0

Close relationships  within of separation: