X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Freorder_level.php;h=49f5f5ca12f5abc8f0e41aa9817c2f4955de914d;hb=d2cc0860eccf02eaefcd90731ac3af141a841529;hp=83283d5b536d012e36863ba8c5213b8586f2e02b;hpb=d7dde51cf888dfc7e049fefed38e786a369b9b38;p=fa-stable.git diff --git a/inventory/reorder_level.php b/inventory/reorder_level.php index 83283d5b..49f5f5ca 100644 --- a/inventory/reorder_level.php +++ b/inventory/reorder_level.php @@ -1,10 +1,19 @@ . +***********************************************************************/ +$page_security = 'SA_REORDER'; +$path_to_root = ".."; include_once($path_to_root . "/includes/session.inc"); -page(_("Reorder Levels")); +page(_($help_context = "Reorder Levels")); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -19,14 +28,14 @@ check_db_has_costable_items(_("There are no inventory items defined in the syste if (isset($_GET['stock_id'])) $_POST['stock_id'] = $_GET['stock_id']; -if (isset($_POST['_stock_id_update'])) +if (list_updated('stock_id')) { $Ajax->activate('show_heading'); $Ajax->activate('reorders'); } //------------------------------------------------------------------------------------ -start_form(false, true); +start_form(); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); @@ -38,6 +47,7 @@ echo "
"; div_start('show_heading'); stock_item_heading($_POST['stock_id']); +br(); div_end(); set_global_stock_item($_POST['stock_id']); @@ -83,7 +93,7 @@ while ($myrow = db_fetch($result)) end_table(1); div_end(); -submit_center('UpdateData', _("Update")); +submit_center('UpdateData', _("Update"), true, false, 'default'); end_form(); end_page();