7 public var code : String;
8 public var name : String;
9 public var comment : String;
10 public var delivery: Date;
12 private var qoh_cache : Int;
13 private var stock_id_cache : String;
15 public function new(row : Dynamic) {
16 var obj = php.Lib.objectOfAssociativeArray(row);
18 name = obj.location_name;
19 comment = obj.delivery_address;
20 delivery = Date.fromString("2013-06-10");
23 public function quantityOnHand(stock_id, date) : Null<Int> {
24 if(qoh_cache == null || stock_id != stock_id_cache) {
25 qoh_cache = untyped __call__('get_qoh_on_date', stock_id, code, date);
26 stock_id_cache = stock_id;