X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitem_codes.php;h=d423b9211ae7d5b3d689915ce3772537ad25eac0;hb=e98dad8c105182b946fd58518710d86214f94c91;hp=2e4b7272d1d2562f56ffb19980b8d6468cc00288;hpb=3a5c989060c96623b8f621ba89f8eb4405fb1588;p=fa-stable.git diff --git a/inventory/manage/item_codes.php b/inventory/manage/item_codes.php index 2e4b7272..d423b921 100644 --- a/inventory/manage/item_codes.php +++ b/inventory/manage/item_codes.php @@ -1,9 +1,19 @@ . +***********************************************************************/ +$page_security = 'SA_FORITEMCODE'; +$path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_("Foreign Item Codes")); +page(_($help_context = "Foreign Item Codes")); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -25,10 +35,10 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') display_error( _("There is no item selected.")); set_focus('stock_id'); } - elseif (!check_num('quantity', 0)) + elseif (!input_num('quantity')) { $input_error = 1; - display_error( _("The price entered was not numeric.")); + display_error( _("The price entered was not positive number.")); set_focus('quantity'); } elseif ($_POST['description'] == '') @@ -72,7 +82,7 @@ if ($Mode == 'Delete') { delete_item_code($selected_id); - display_notification(_("The purchasing data item has been sucessfully deleted.")); + display_notification(_("Item code has been sucessfully deleted.")); $Mode = 'RESET'; } @@ -87,13 +97,13 @@ if (list_updated('stock_id')) //-------------------------------------------------------------------------------------------------- -start_form(false, true); +start_form(); if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); echo "