X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Finquiry%2Fstock_status.php;h=ae0764567c14fbde263f5cf1f7caa619755d4cbf;hb=ed98647a92fe4c17e78bd4f7314bd7548591dc63;hp=acaa0c0f493ddffb40a466291e40d99eb6016ccd;hpb=ddfd301aaab1897a4440fc3d779d23766bf7ce5c;p=fa-stable.git diff --git a/inventory/inquiry/stock_status.php b/inventory/inquiry/stock_status.php index acaa0c0f..ae076456 100644 --- a/inventory/inquiry/stock_status.php +++ b/inventory/inquiry/stock_status.php @@ -18,6 +18,8 @@ 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'])) + $Ajax->activate('status_tbl'); //---------------------------------------------------------------------------------------------------- check_db_has_stock_items(_("There are no items defined in the system.")); @@ -46,6 +48,7 @@ if (is_service($mb_flag)) $loc_details = get_loc_details($_POST['stock_id']); +div_start('status_tbl'); start_table($table_style); if ($kitset_or_service == true) @@ -58,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 @@ -107,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(); } @@ -119,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(); } @@ -132,7 +136,7 @@ while ($myrow = db_fetch($loc_details)) } end_table(); - +div_end(); end_form(); end_page();