X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Finquiry%2Fstock_status.php;h=2461c18899fde8069f34213860c7febcb1132c5c;hb=2007cfcc6a4df0ed52d9fde26f421863340dee2e;hp=c0509a73f38d307bed659059efdceb7b97d98912;hpb=0b0690657989cd259e5966faaac7cacbfa89cee2;p=fa-stable.git diff --git a/inventory/inquiry/stock_status.php b/inventory/inquiry/stock_status.php index c0509a73..2461c188 100644 --- a/inventory/inquiry/stock_status.php +++ b/inventory/inquiry/stock_status.php @@ -18,7 +18,7 @@ include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/inventory/includes/inventory_db.inc"); -if (isset($_POST['_stock_id_update'])) +if (list_updated('stock_id')) $Ajax->activate('status_tbl'); //---------------------------------------------------------------------------------------------------- @@ -61,6 +61,7 @@ else _("Demand"), _("Available"), _("On Order")); } table_header($th); +$dec = get_qty_dec($_POST['stock_id']); $j = 1; $k = 0; //row colour counter @@ -110,11 +111,11 @@ while ($myrow = db_fetch($loc_details)) } label_cell($myrow["location_name"]); - qty_cell($qoh); - qty_cell($myrow["reorder_level"]); - qty_cell($demand_qty); - qty_cell($qoh - $demand_qty); - qty_cell($qoo); + qty_cell($qoh, false, $dec); + qty_cell($myrow["reorder_level"], false, $dec); + qty_cell($demand_qty, false, $dec); + qty_cell($qoh - $demand_qty, false, $dec); + qty_cell($qoo, false, $dec); end_row(); } @@ -122,7 +123,7 @@ while ($myrow = db_fetch($loc_details)) { /* It must be a service or kitset part */ label_cell($myrow["location_name"]); - qty_cell($demand_qty); + qty_cell($demand_qty, false, $dec); end_row(); }