From: Maxime Bourget Date: Tue, 28 May 2013 19:53:45 +0000 (+0100) Subject: Get QOH X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a4cfbf7d5564d40db6f9145e225f453a83fe766a;p=order_line_extra.git Get QOH --- diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index 2244eee..3f6cdc7 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -98,6 +98,7 @@ class ItemScheduler { var cells = [ location.code ,location.name + ,location.quantityOnHand(stock_id, null) ]; var status = 'header'; php.Lib.print(''); diff --git a/haxe/Location.hx b/haxe/Location.hx index 198464b..5390eb5 100644 --- a/haxe/Location.hx +++ b/haxe/Location.hx @@ -7,6 +7,7 @@ class Location { public var code : String; public var name : String; public var comment : String; + public var qoh : Int; public function new(row : Dynamic) { var obj = php.Lib.objectOfAssociativeArray(row); @@ -14,4 +15,8 @@ class Location { name = obj.location_name; comment = obj.delivery_address; } + + private function quantityOnHand(stock_id, date) { + return untyped __call__('get_qoh_on_date', stock_id, code, date); + } }