From: Maxime Bourget Date: Sat, 1 Jun 2013 16:28:49 +0000 (+0100) Subject: Parse POST data. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=29ab8cebdbc11563be7f9dfb1f5c3314f8715b43;p=order_line_extra.git Parse POST data. --- diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index 06b0b9c..c767bda 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -20,14 +20,26 @@ class ScheduleParameters { rowDetails = new Hash(); var position = 1; for(id in row_ids) { + var d : Dynamic = data.get(id); + //var o = php.Lib.objectOfAssociativeArray(d); + php.Lib.dump(d); + php.Lib.print('
'); + + var quantity : Int = null; + if(d != null) { + var o = php.Lib.objectOfAssociativeArray(d); + quantity = Std.parseInt(o.quantity); + } + + rowDetails.set(id, { id: id - ,quantity: null + ,quantity: quantity ,position: position++ }); } } - php.Lib.dump(rowDetails); + //php.Lib.dump(rowDetails); } public function position(id: String) : Int {