X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FOrderItem.pm;h=862a215a15d4895dd7d6e12ac30c0a39d3a3a819;hb=5c4833d72ee69bdbbc4aefe469caf2913801c96a;hp=3b868d350991bee5fb9c79b55fb6e8236ec675c6;hpb=dc7791df0d3e919e691fb3fd3d7ee20e3c5e7ca1;p=kivitendo-erp.git diff --git a/SL/DB/OrderItem.pm b/SL/DB/OrderItem.pm index 3b868d350..862a215a1 100644 --- a/SL/DB/OrderItem.pm +++ b/SL/DB/OrderItem.pm @@ -16,26 +16,11 @@ use SL::DB::Helper::CustomVariables ( ); __PACKAGE__->meta->add_relationship( - part => { - type => 'one to one', - class => 'SL::DB::Part', - column_map => { parts_id => 'id' }, - }, - price_factor_obj => { - type => 'one to one', - class => 'SL::DB::PriceFactor', - column_map => { price_factor_id => 'id' }, - }, unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, - order => { - type => 'one to one', - class => 'SL::DB::Order', - column_map => { trans_id => 'id' }, - }, ); __PACKAGE__->meta->initialize;