X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FOrderItem.pm;h=862a215a15d4895dd7d6e12ac30c0a39d3a3a819;hb=9f9f93b3f869be5b187a7fe00327ed85f9a43b6c;hp=7372f81a8d81642d4991ce5ff8773010ecc21861;hpb=b632cee8434442efd8ae3962126c34123172daac;p=kivitendo-erp.git diff --git a/SL/DB/OrderItem.pm b/SL/DB/OrderItem.pm index 7372f81a8..862a215a1 100644 --- a/SL/DB/OrderItem.pm +++ b/SL/DB/OrderItem.pm @@ -17,7 +17,7 @@ use SL::DB::Helper::CustomVariables ( __PACKAGE__->meta->add_relationship( unit_obj => { - type => 'one to one', + type => 'many to one', class => 'SL::DB::Unit', column_map => { unit => 'name' }, }, @@ -39,14 +39,4 @@ sub shipped_qty { return sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi); } -sub part { - # canonial alias for parts. - goto &parts; -} - -sub order { - # canonial alias for trans. - goto &trans; -} - 1;