From: Maxime Bourget Date: Sat, 1 Jun 2013 21:40:33 +0000 (+0100) Subject: Add missing location at the end. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f62ea0e748c0f130e3e50faa67fe195bf7dd9936;p=order_line_extra.git Add missing location at the end. --- 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); + } }