X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b632cee8434442efd8ae3962126c34123172daac..7635f647ec7dcdef51684b21601ee0930ea2bc5b:/SL/DB/OrderItem.pm 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;