Table openpetra_trunk.public.a_tax_table
This is used by the invoicing

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_ar_invoice.a_ledger_number_i a_ar_invoice_fk2 R
a_ar_invoice_detail.a_ledger_number_i a_ar_invoice_detail_fk2 R
a_ledger.a_ledger_number_i a_tax_table_fk1 R
This is used as a key field in most of the accounting system files
a_tax_type_code_c varchar 16
a_ar_invoice.a_special_tax_type_code_c a_ar_invoice_fk2 R
a_ar_invoice_detail.a_tax_type_code_c a_ar_invoice_detail_fk2 R
a_tax_type.a_tax_type_code_c a_tax_table_fk2 R
The tax type is always the same, e.g. VAT
a_tax_rate_code_c varchar 16
a_ar_invoice.a_special_tax_rate_code_c a_ar_invoice_fk2 R
a_ar_invoice_detail.a_tax_rate_code_c a_ar_invoice_detail_fk2 R
this describes whether it is e.g. the standard, reduced or zero rate of VAT
a_tax_valid_from_d date 13
a_ar_invoice.a_special_tax_valid_from_d a_ar_invoice_fk2 R
a_ar_invoice_detail.a_tax_valid_from_d a_ar_invoice_detail_fk2 R
this describes when this particular percentage rate has become valid by law
a_tax_rate_description_c varchar 64  √  null This is a short description which is 32 charcters long
a_tax_rate_n numeric 24,10  √  0 Tax rate
a_active_l bool 1  √  true flag that prevents this rate from being used, e.g. if it has been replaced by another rate
s_date_created_d date 13  √  ('now'::text)::date
s_created_by_c varchar 20  √  null
s_user.s_user_id_c a_tax_table_fkcr R
s_date_modified_d date 13  √  null
s_modified_by_c varchar 20  √  null
s_user.s_user_id_c a_tax_table_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_tax_type_code_c + a_tax_rate_code_c + a_tax_valid_from_d Primary key Asc/Asc/Asc/Asc a_tax_table_pk
a_ledger_number_i Performance Asc inx_a_tax_table_fk1_key1
a_tax_type_code_c Performance Asc inx_a_tax_table_fk2_key2
s_created_by_c Performance Asc inx_a_tax_table_fkcr_key3
s_modified_by_c Performance Asc inx_a_tax_table_fkmd_key4
a_ledger_number_i + a_tax_type_code_c + a_tax_rate_code_c + a_tax_valid_from_d Must be unique Asc/Asc/Asc/Asc inx_a_tax_table_pk0

Close relationships  within of separation: