Die id der delivery_order ist in delivery_order_id bei items, nicht in trans_id
authorBernd Blessmann <bibi@online.de>
Wed, 1 Feb 2012 12:00:33 +0000 (13:00 +0100)
committerBernd Blessmann <bibi@online.de>
Wed, 1 Feb 2012 12:00:33 +0000 (13:00 +0100)
SL/DB/DeliveryOrder.pm

index b65bf3e..0a483bf 100644 (file)
@@ -12,7 +12,7 @@ use List::Util qw(first);
 
 __PACKAGE__->meta->add_relationship(orderitems => { type         => 'one to many',
                                                     class        => 'SL::DB::DeliveryOrderItem',
-                                                    column_map   => { id => 'trans_id' },
+                                                    column_map   => { id => 'delivery_order_id' },
                                                     manager_args => { with_objects => [ 'part' ] }
                                                   },
                                     shipto => { type       => 'one to one',