X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Finquiry%2Fstock_status.php;h=a073e868bc912aa388afdeaa92e2e0b279785f0c;hb=2e181b13aa722a43e78b897404912d6b13a0a937;hp=acaa0c0f493ddffb40a466291e40d99eb6016ccd;hpb=ddfd301aaab1897a4440fc3d779d23766bf7ce5c;p=fa-stable.git diff --git a/inventory/inquiry/stock_status.php b/inventory/inquiry/stock_status.php index acaa0c0f..a073e868 100644 --- a/inventory/inquiry/stock_status.php +++ b/inventory/inquiry/stock_status.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); @@ -18,6 +27,8 @@ include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/inventory/includes/inventory_db.inc"); +if (list_updated('stock_id')) + $Ajax->activate('status_tbl'); //---------------------------------------------------------------------------------------------------- check_db_has_stock_items(_("There are no items defined in the system.")); @@ -46,6 +57,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 +70,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 +120,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 +132,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 +145,7 @@ while ($myrow = db_fetch($loc_details)) } end_table(); - +div_end(); end_form(); end_page();