Enabling popup search in Customers, branches, suppliers, inventory, fixed assets...
[fa-stable.git] / inventory / manage / item_codes.php
index 9fa68ebb43a813c4f252b4349d7f550909e3bd99..236ac79592bfe482ff912632149c6b71e297ae06 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");