,location.name
,location.quantityOnHand(stock_id, null)
,left-location.quantityOnHand(stock_id, null)
- ,left
+ , "<span>"+left+"</span>" // only to force null or 0 to be displayed
,location.code
,location.delivery.getTime() == 0 ? '' : location.delivery.format("%F")
,""
return FA::query($sql);
}
public function formatLocation($location, $type, $left) {
- $cells = new _hx_array(array($type, $location->name, $location->quantityOnHand($this->stock_id, null), $left - $location->quantityOnHand($this->stock_id, null), $left, $location->code, ((_hx_equal($location->delivery->getTime(), 0)) ? "" : DateTools::format($location->delivery, "%F")), "", "", ""));
+ $cells = new _hx_array(array($type, $location->name, $location->quantityOnHand($this->stock_id, null), $left - $location->quantityOnHand($this->stock_id, null), "<span>" . _hx_string_rec($left, "") . "</span>", $location->code, ((_hx_equal($location->delivery->getTime(), 0)) ? "" : DateTools::format($location->delivery, "%F")), "", "", ""));
$this->printRow($cells, new _hx_array(array("class = \"tableheader location\"", "id = \"loc_" . $location->code . "\"")));
}
public function quantity_box($row_id, $order, $left) {
+ stock_costable_items_list_cells(_("Item:"), 'stock_id', $_POST['stock_id']);
+// Needs to be done afterward as it can modify the post variable
$stock_id = $_POST['stock_id'];
- stock_costable_items_list_cells(_("Item:"), 'stock_id', $stock_id);
-
end_row();
end_table(1);