X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FOrderItem.pm;h=862a215a15d4895dd7d6e12ac30c0a39d3a3a819;hb=b35bf9ab655a13a851c7fbe12a9dc94a590dc9ee;hp=3b868d350991bee5fb9c79b55fb6e8236ec675c6;hpb=ef2b5e949ac07d4f3258821f781da90761bead1a;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;