X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FInvoiceItem.pm;h=d527f76f53497cbfb9fd14c1ff8d2c719929c204;hb=2bc376b9be6507cc0fdf3ddca0ed410566cf3ba4;hp=1ab85ef95f0c48528565ca2395379432fa9355b6;hpb=4bcf880408fcc4270084f36520d4fd2cfd509fbc;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/InvoiceItem.pm b/SL/DB/MetaSetup/InvoiceItem.pm index 1ab85ef95..d527f76f5 100644 --- a/SL/DB/MetaSetup/InvoiceItem.pm +++ b/SL/DB/MetaSetup/InvoiceItem.pm @@ -9,35 +9,35 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('invoice'); __PACKAGE__->meta->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' }, + base_qty => { type => 'float', precision => 4 }, + cusordnumber => { type => 'text' }, deliverydate => { type => 'date' }, - serialnumber => { type => 'text' }, + description => { type => 'text' }, + discount => { type => 'float', precision => 4 }, + fxsellprice => { type => 'numeric', precision => 5, scale => 15 }, + id => { type => 'integer', not_null => 1, sequence => 'invoiceid' }, itime => { type => 'timestamp', default => 'now()' }, + lastcost => { type => 'numeric', precision => 5, scale => 15 }, + longdescription => { type => 'text' }, + marge_percent => { type => 'numeric', precision => 5, scale => 15 }, + marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 }, + marge_total => { type => 'numeric', precision => 5, scale => 15 }, mtime => { type => 'timestamp' }, - pricegroup_id => { type => 'integer' }, ordnumber => { type => 'text' }, + parts_id => { type => 'integer' }, + price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 }, + price_factor_id => { type => 'integer' }, + pricegroup_id => { type => 'integer' }, + project_id => { type => 'integer' }, + qty => { type => 'float', precision => 4 }, + sellprice => { type => 'numeric', precision => 5, scale => 15 }, + serialnumber => { type => 'text' }, + subtotal => { type => 'boolean', default => 'false' }, + trans_id => { type => 'integer' }, 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 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -66,7 +66,5 @@ __PACKAGE__->meta->foreign_keys( }, ); -# __PACKAGE__->meta->initialize; - 1; ;