Table openpetra_trunk.public.a_crdt_note_invoice_link
This table receives a new entry when a credit note is applied to an invoice. Since the invoices and credit notes share the same table, we need a way to link the two, and this is the role of this table.

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
a_ap_document.a_ledger_number_i a_crdt_note_invoice_link_fk2 R
Reference to the ledger number.
a_credit_note_number_i int4 10
a_ap_document.a_ap_number_i a_crdt_note_invoice_link_fk1 R
Reference to the credit note.
a_invoice_number_i int4 10
a_ap_document.a_ap_number_i a_crdt_note_invoice_link_fk2 R
Reference to the invoice.
a_applied_date_d date 13  √  null
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_crdt_note_invoice_link_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_crdt_note_invoice_link_fkmd R
s_modification_id_c varchar 150  √  null

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

Indexes:
Column(s) Type Sort Constraint Name
a_ledger_number_i + a_credit_note_number_i + a_invoice_number_i Primary key Asc/Asc/Asc a_crdt_note_invoice_link_pk
a_ledger_number_i + a_credit_note_number_i + a_invoice_number_i Must be unique Asc/Asc/Asc inx_a_crdt_note_invoice_link_pk0
a_ledger_number_i + a_credit_note_number_i Performance Asc/Asc inx_dt_note_invoice_link_fk1_key1
a_ledger_number_i + a_invoice_number_i Performance Asc/Asc inx_dt_note_invoice_link_fk2_key2
s_created_by_c Performance Asc inx_t_note_invoice_link_fkcr_key3
s_modified_by_c Performance Asc inx_t_note_invoice_link_fkmd_key4

Close relationships  within of separation: