X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ff159a4d47b9a2d10744dcfc23da2c63605c8a32..eeb5375ee7727c956cc357cc8f90b19d1bfe80b9:/SL/DB/MetaSetup/InvoiceItem.pm diff --git a/SL/DB/MetaSetup/InvoiceItem.pm b/SL/DB/MetaSetup/InvoiceItem.pm index 8a67022fc..173392950 100644 --- a/SL/DB/MetaSetup/InvoiceItem.pm +++ b/SL/DB/MetaSetup/InvoiceItem.pm @@ -19,8 +19,10 @@ __PACKAGE__->meta->columns( description => { type => 'text' }, discount => { type => 'float', precision => 4, scale => 4 }, donumber => { type => 'text' }, + expense_chart_id => { type => 'integer' }, fxsellprice => { type => 'numeric', precision => 15, scale => 5 }, id => { type => 'integer', not_null => 1, sequence => 'invoiceid' }, + inventory_chart_id => { type => 'integer' }, itime => { type => 'timestamp', default => 'now()' }, lastcost => { type => 'numeric', precision => 15, scale => 5 }, longdescription => { type => 'text' }, @@ -39,6 +41,8 @@ __PACKAGE__->meta->columns( sellprice => { type => 'numeric', precision => 15, scale => 5 }, serialnumber => { type => 'text' }, subtotal => { type => 'boolean', default => 'false' }, + tax_chart_type => { type => 'varchar', length => 20 }, + tax_id => { type => 'integer' }, trans_id => { type => 'integer' }, transdate => { type => 'text' }, unit => { type => 'varchar', length => 20 }, @@ -49,6 +53,16 @@ __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); __PACKAGE__->meta->foreign_keys( + expense_chart => { + class => 'SL::DB::Chart', + key_columns => { expense_chart_id => 'id' }, + }, + + inventory_chart => { + class => 'SL::DB::Chart', + key_columns => { inventory_chart_id => 'id' }, + }, + part => { class => 'SL::DB::Part', key_columns => { parts_id => 'id' }, @@ -69,6 +83,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { project_id => 'id' }, }, + tax => { + class => 'SL::DB::Tax', + key_columns => { tax_id => 'id' }, + }, + unit_obj => { class => 'SL::DB::Unit', key_columns => { unit => 'name' },