X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Freorder_level.php;h=c863796a6ece9fbff25b16f9a78f59de59e6b56f;hb=06feaeabf5f8376201cf3aeb6367a4c97e1e2cbd;hp=3a6834370dad9b76a51e17606a2cbd629c870aed;hpb=3aebde86793f495095e09160ebaae3e7b7040747;p=fa-stable.git diff --git a/inventory/reorder_level.php b/inventory/reorder_level.php index 3a683437..c863796a 100644 --- a/inventory/reorder_level.php +++ b/inventory/reorder_level.php @@ -1,17 +1,29 @@ . +***********************************************************************/ +$page_security = 'SA_REORDER'; +if (!@$_GET['popup']) + $path_to_root = ".."; +else + $path_to_root = "../.."; -$page_security = 4; -$path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); - -page(_("Reorder Levels")); - include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/data_checks.inc"); - include_once($path_to_root . "/inventory/includes/inventory_db.inc"); +if (!@$_GET['popup']) + page(_($help_context = "Reorder Levels")); + check_db_has_costable_items(_("There are no inventory items defined in the system (Purchased or manufactured items).")); //------------------------------------------------------------------------------------ @@ -26,23 +38,32 @@ if (list_updated('stock_id')) } //------------------------------------------------------------------------------------ -start_form(false, true); +$action = $_SERVER['PHP_SELF']; +if (@$_GET['popup']) + $action .= "?stock_id=".get_post('stock_id'); +start_form(false, false, $action); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); -echo "