t/helper/shipped_qty.t: Vergessene Items-Sortierung.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Sat, 19 Aug 2017 12:28:19 +0000 (14:28 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Sat, 19 Aug 2017 12:28:19 +0000 (14:28 +0200)
t/helper/shipped_qty.t

index 7504bea..0b3ef88 100644 (file)
@@ -192,8 +192,8 @@ SL::Helper::ShippedQty
   ->calculate($sales_order)
   ->write_to_objects;
 
-is($sales_order->orderitems->[0]->{shipped_qty}, 5, "require_stock_out => 1: first sales orderitem has no shipped_qty");
-ok($sales_order->orderitems->[0]->{delivered},      "require_stock_out => 1: first sales orderitem is not delivered");
+is($sales_order->items_sorted->[0]->{shipped_qty}, 5, "require_stock_out => 1: first sales orderitem has no shipped_qty");
+ok($sales_order->items_sorted->[0]->{delivered},      "require_stock_out => 1: first sales orderitem is not delivered");
 
 $orderitem_part1 = SL::DB::Manager::OrderItem->find_by(parts_id => $part1->id, trans_id => $sales_order->id);