From a4cfbf7d5564d40db6f9145e225f453a83fe766a Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Tue, 28 May 2013 20:53:45 +0100 Subject: [PATCH] Get QOH --- haxe/ItemScheduler.hx | 1 + haxe/Location.hx | 5 +++++ 2 files changed, 6 insertions(+) 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); + } } -- 2.30.2