Table a_ap_supplier
Diagram AccountsPayable 
Description:
This table defines the concept of a supplier in the AP system and is the centre of the AP system.
PRIMARY KEY
p_partner_key_n
bigint NOT NULL
Reference to the partner key for this supplier p_partner

a_preferred_screen_display_i
integer
Number of months to display invoices and credit notes
a_default_bank_account_c
varchar (16)
Reference to default bank account to use to pay supplier with.
a_payment_type_c
varchar (24)
The default type of payment to use when paying this supplier.
a_currency_code_c
varchar (16) NOT NULL
The currency code to use for this supplier. a_currency
a_default_ap_account_c
varchar (16)
The default AP Account to use when paying this supplier.
a_default_credit_terms_i
integer
Default credit terms to use for invoices from this supplier.
a_default_discount_percentage_n
numeric (24, 10)
Default percentage discount to receive for early payments.
a_default_discount_days_i
integer
Default number of days in which the discount percentage has effect.
a_supplier_type_c
varchar (24)
What type of supplier this is - normal, credit card, maybe something else.
a_default_exp_account_c
varchar (16)
Reference to the default expense Account to use for invoice details.
a_default_cost_centre_c
varchar (16)
Reference to the default cost centre to use for invoice details.
a_our_reference_c
varchar (100)
This reference identifies us to the supplier
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_supplier_fk1: p_partner_key_n => p_partner
a_ap_supplier_fk2: a_currency_code_c => a_currency
a_ap_supplier_fkcr: s_created_by_c => s_user
a_ap_supplier_fkmd: s_modified_by_c => s_user


REFERENCED BY
a_ap_document