Bug 5106: Incorrect field length for inserting a kit. Also in Foreign Item Codes...
[fa-stable.git] / inventory / manage / item_codes.php
index 11d918c6504a046ff5850e090e531b295636a690..0742780aaa272753e7d2cbfa7e017e2a6b3e7b2f 100644 (file)
@@ -13,7 +13,11 @@ $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");
@@ -37,7 +41,7 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
        elseif (!input_num('quantity'))
        {
        $input_error = 1;
-       display_error( _("The price entered was not positive number."));
+       display_error( _("The quantity entered was not positive number."));
                set_focus('quantity');
        }
        elseif ($_POST['description'] == '')
@@ -102,9 +106,8 @@ if (!isset($_POST['stock_id']))
        $_POST['stock_id'] = get_global_stock_item();
 
 echo "<center>" . _("Item:"). "&nbsp;";
-//Chaitanya : Manufcatured item visible
+//Manufcatured item visible
 echo stock_items_list('stock_id', $_POST['stock_id'], false, true);
-//echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
 
 echo "<hr></center>";
 
@@ -174,7 +177,7 @@ start_table(TABLESTYLE2);
 
 hidden('code_id', $selected_id);
 
-text_row(_("UPC/EAN code:"), 'item_code', null, 20, 21);
+text_row(_("UPC/EAN code:"), 'item_code', null, 20, 20);
 qty_row(_("Quantity:"), 'quantity', null, '', $units, $dec);
 text_row(_("Description:"), 'description', null, 50, 200);
 stock_categories_list_row(_("Category:"), 'category_id', null);