]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/OrderItem.pm
neue Methode items_sorted für Order, DeliveryOrder, Invoice, PurchaseInvoice
[mfinanz.git] / SL / DB / OrderItem.pm
index 7372f81a8d81642d4991ce5ff8773010ecc21861..862a215a15d4895dd7d6e12ac30c0a39d3a3a819 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;