X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPart.pm;h=6e758e499e3cb811a96f6212e68ce1485b30465a;hb=79dc6c16897945652994f9d2d354f1d6477d81a6;hp=7e9eedcfa6ae344833c7308916703420ccd22eba;hpb=71041661bf4a8e0ad75a20d9252dc501b3611657;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Part.pm b/SL/DB/MetaSetup/Part.pm index 7e9eedcfa..6e758e499 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 }, @@ -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 => {