X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=inventory%2Fmanage%2Fitem_codes.php;h=236ac79592bfe482ff912632149c6b71e297ae06;hb=4ae7b93fee1e59e639b39833f1437bcbc35685ea;hp=a731d9ed5336078555ff2aeb6c0b2753753994e3;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/inventory/manage/item_codes.php b/inventory/manage/item_codes.php index a731d9ed..236ac795 100644 --- a/inventory/manage/item_codes.php +++ b/inventory/manage/item_codes.php @@ -13,11 +13,14 @@ $page_security = 'SA_FORITEMCODE'; $path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); -page(_($help_context = "Foreign Item Codes")); +$js = ""; +if ($SysPrefs->use_popup_windows && $SysPrefs->use_popup_search) + $js .= get_js_open_window(900, 500); + +page(_($help_context = "Foreign Item Codes"), false, false, "", $js); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); include_once($path_to_root . "/includes/data_checks.inc"); check_db_has_purchasable_items(_("There are no inventory items defined in the system.")); @@ -35,10 +38,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 quantity entered was not positive number.")); set_focus('quantity'); } elseif ($_POST['description'] == '') @@ -103,7 +106,8 @@ if (!isset($_POST['stock_id'])) $_POST['stock_id'] = get_global_stock_item(); echo "