From f62ea0e748c0f130e3e50faa67fe195bf7dd9936 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 1 Jun 2013 22:40:33 +0100 Subject: [PATCH] Add missing location at the end. --- haxe/ItemScheduler.hx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index bc763e9..75727a2 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -111,6 +111,14 @@ class ItemScheduler { formatOrder(order, left, location.delivery); } + // display the left locations + while(0 > left && locationIter.hasNext()) { + location = locationIter.next(); + var quantityForLocation : Int = location.quantityOnHand(stock_id, null); + if(quantityForLocation == null || quantityForLocation == 0) continue; + left += quantityForLocation; + formatLocation(location, "Delivery", left); + } } -- 2.30.2