X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4440782f0737cd715dbd96851ecc2dbd8cd639f2..82515b2d93dc5632f24d6e0b6f8f05f3fd19fbb0:/SL/DB/MetaSetup/InvoiceItem.pm diff --git a/SL/DB/MetaSetup/InvoiceItem.pm b/SL/DB/MetaSetup/InvoiceItem.pm new file mode 100644 index 000000000..9a851e057 --- /dev/null +++ b/SL/DB/MetaSetup/InvoiceItem.pm @@ -0,0 +1,57 @@ +# This file has been auto-generated. Do not modify it; it will be overwritten +# by rose_auto_create_model.pl automatically. +package SL::DB::InvoiceItem; + +use strict; + +use base qw(SL::DB::Object); + +__PACKAGE__->meta->setup( + table => 'invoice', + + columns => [ + id => { type => 'integer', not_null => 1, sequence => 'invoiceid' }, + trans_id => { type => 'integer' }, + parts_id => { type => 'integer' }, + description => { type => 'text' }, + qty => { type => 'float', precision => 4 }, + allocated => { type => 'float', precision => 4 }, + sellprice => { type => 'numeric', precision => 5, scale => 15 }, + fxsellprice => { type => 'numeric', precision => 5, scale => 15 }, + discount => { type => 'float', precision => 4 }, + assemblyitem => { type => 'boolean', default => 'false' }, + project_id => { type => 'integer' }, + deliverydate => { type => 'date' }, + serialnumber => { type => 'text' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + pricegroup_id => { type => 'integer' }, + ordnumber => { type => 'text' }, + transdate => { type => 'text' }, + cusordnumber => { type => 'text' }, + unit => { type => 'varchar', length => 20 }, + base_qty => { type => 'float', precision => 4 }, + subtotal => { type => 'boolean', default => 'false' }, + longdescription => { type => 'text' }, + marge_total => { type => 'numeric', precision => 5, scale => 15 }, + marge_percent => { type => 'numeric', precision => 5, scale => 15 }, + lastcost => { type => 'numeric', precision => 5, scale => 15 }, + price_factor_id => { type => 'integer' }, + price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 }, + marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 }, + ], + + primary_key_columns => [ 'id' ], + + allow_inline_column_values => 1, + + foreign_keys => [ + parts => { + class => 'SL::DB::Part', + key_columns => { parts_id => 'id' }, + }, + ], +); + +1; +;