Table a_ar_invoice_detail_discount
Description:
defines which discounts apply one invoice item
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_ar_invoice_detail
a_invoice_key_i
integer NOT NULL
Key to uniquely identify invoice a_ar_invoice_detail
a_detail_number_i
integer NOT NULL
A unique number for this detail for its invoice. a_ar_invoice_detail
a_ar_discount_code_c
varchar (100) NOT NULL
code that identifies the discount a_ar_discount
a_ar_discount_date_valid_from_d
date NOT NULL
this clearly specifies which version of the discount is meant a_ar_discount

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_ar_invoice_detail_discount_fk1: a_ledger_number_i;a_invoice_key_i;a_detail_number_i => a_ar_invoice_detail
a_ar_invoice_detail_discount_fk2: a_ar_discount_code_c;a_ar_discount_date_valid_from_d => a_ar_discount
a_ar_invoice_detail_discount_fkcr: s_created_by_c => s_user
a_ar_invoice_detail_discount_fkmd: s_modified_by_c => s_user