X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FInvoiceItem.pm;h=85b8876be8712bc0488583dea19c2ddce3612bbd;hb=a4193657f8fb28966959276593999192abf70ca2;hp=68ed569e463b6ead16b4625e2b25f6d276bb3734;hpb=89b2668811eac6023ad58322e2f9970ddb6a27c9;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/InvoiceItem.pm b/SL/DB/MetaSetup/InvoiceItem.pm index 68ed569e4..85b8876be 100644 --- a/SL/DB/MetaSetup/InvoiceItem.pm +++ b/SL/DB/MetaSetup/InvoiceItem.pm @@ -4,20 +4,20 @@ package SL::DB::InvoiceItem; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('invoice'); __PACKAGE__->meta->columns( active_discount_source => { type => 'text', default => '', not_null => 1 }, active_price_source => { type => 'text', default => '', not_null => 1 }, - allocated => { type => 'float', scale => 4 }, + allocated => { type => 'float', precision => 4, scale => 4 }, assemblyitem => { type => 'boolean', default => 'false' }, - base_qty => { type => 'float', scale => 4 }, + base_qty => { type => 'float', precision => 4, scale => 4 }, cusordnumber => { type => 'text' }, deliverydate => { type => 'date' }, description => { type => 'text' }, - discount => { type => 'float', scale => 4 }, + discount => { type => 'float', precision => 4, scale => 4 }, donumber => { type => 'text' }, fxsellprice => { type => 'numeric', precision => 15, scale => 5 }, id => { type => 'integer', not_null => 1, sequence => 'invoiceid' }, @@ -30,11 +30,12 @@ __PACKAGE__->meta->columns( mtime => { type => 'timestamp' }, ordnumber => { type => 'text' }, parts_id => { type => 'integer' }, + position => { type => 'integer', not_null => 1 }, price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 }, price_factor_id => { type => 'integer' }, pricegroup_id => { type => 'integer' }, project_id => { type => 'integer' }, - qty => { type => 'float', scale => 4 }, + qty => { type => 'float', precision => 4, scale => 4 }, sellprice => { type => 'numeric', precision => 15, scale => 5 }, serialnumber => { type => 'text' }, subtotal => { type => 'boolean', default => 'false' },