X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPart.pm;h=ef6ed69f5aaee46b54c96f76608c40d3329b5c21;hb=97a6f6d623a9810e1d324f44a5f8bcd12294f5d3;hp=65cd85da24e15a03d3b6862d0c01808a78eb4063;hpb=e225f710e3d55b9423c0f39a733546fd35ff80d6;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Part.pm b/SL/DB/MetaSetup/Part.pm index 65cd85da2..ef6ed69f5 100644 --- a/SL/DB/MetaSetup/Part.pm +++ b/SL/DB/MetaSetup/Part.pm @@ -12,6 +12,7 @@ __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' }, @@ -36,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' ]); @@ -63,6 +64,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { buchungsgruppen_id => 'id' }, }, + classification => { + class => 'SL::DB::PartClassification', + key_columns => { classification_id => 'id' }, + }, + partsgroup => { class => 'SL::DB::PartsGroup', key_columns => { partsgroup_id => 'id' },