X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPart.pm;h=ef6ed69f5aaee46b54c96f76608c40d3329b5c21;hb=356fec7ed87236e0b68c0ef45fe5f99c8b1f5038;hp=7e9eedcfa6ae344833c7308916703420ccd22eba;hpb=71041661bf4a8e0ad75a20d9252dc501b3611657;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Part.pm b/SL/DB/MetaSetup/Part.pm index 7e9eedcfa..ef6ed69f5 100644 --- a/SL/DB/MetaSetup/Part.pm +++ b/SL/DB/MetaSetup/Part.pm @@ -12,17 +12,15 @@ __PACKAGE__->meta->columns( bin_id => { type => 'integer' }, bom => { type => 'boolean', default => 'false' }, buchungsgruppen_id => { type => 'integer' }, + classification_id => { type => 'integer', default => '0' }, description => { type => 'text' }, drawing => { type => 'text' }, ean => { type => 'text' }, - expense_accno_id => { type => 'integer' }, formel => { type => 'text' }, gv => { type => 'numeric', precision => 15, scale => 5 }, has_sernumber => { type => 'boolean', default => 'false' }, id => { type => 'integer', not_null => 1, sequence => 'id' }, image => { type => 'text' }, - income_accno_id => { type => 'integer' }, - inventory_accno_id => { type => 'integer' }, itime => { type => 'timestamp', default => 'now()' }, lastcost => { type => 'numeric', precision => 15, scale => 5 }, listprice => { type => 'numeric', precision => 15, scale => 5 }, @@ -39,14 +37,14 @@ __PACKAGE__->meta->columns( payment_id => { type => 'integer' }, price_factor_id => { type => 'integer' }, priceupdate => { type => 'date', default => 'now' }, - rop => { type => 'float', scale => 4 }, + rop => { type => 'float', precision => 4, scale => 4 }, sellprice => { type => 'numeric', precision => 15, scale => 5 }, shop => { type => 'boolean', default => 'false' }, stockable => { type => 'boolean', default => 'false' }, unit => { type => 'varchar', length => 20, not_null => 1 }, ve => { type => 'integer' }, warehouse_id => { type => 'integer' }, - weight => { type => 'float', scale => 4 }, + weight => { type => 'float', precision => 4, scale => 4 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -66,19 +64,9 @@ __PACKAGE__->meta->foreign_keys( key_columns => { buchungsgruppen_id => 'id' }, }, - expense_account => { - class => 'SL::DB::Chart', - key_columns => { expense_accno_id => 'id' }, - }, - - income_account => { - class => 'SL::DB::Chart', - key_columns => { income_accno_id => 'id' }, - }, - - inventory_account => { - class => 'SL::DB::Chart', - key_columns => { inventory_accno_id => 'id' }, + classification => { + class => 'SL::DB::PartClassification', + key_columns => { classification_id => 'id' }, }, partsgroup => {