Form::_dbconnect_options nach SL::DBConnect::get_options verschoben
[kivitendo-erp.git] / SL / DB / OrderItem.pm
index 7372f81..862a215 100644 (file)
@@ -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;