From: Bernd Bleßmann Date: Sat, 19 Aug 2017 12:28:19 +0000 (+0200) Subject: t/helper/shipped_qty.t: Vergessene Items-Sortierung. X-Git-Tag: release-3.5.4~879 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=684dfbefa1db8697d3786f6b700c33e014181941;p=kivitendo-erp.git t/helper/shipped_qty.t: Vergessene Items-Sortierung. --- diff --git a/t/helper/shipped_qty.t b/t/helper/shipped_qty.t index 7504bea37..0b3ef882a 100644 --- a/t/helper/shipped_qty.t +++ b/t/helper/shipped_qty.t @@ -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);