In case of document reference already in use, FA suggest the next number (if possible...
[fa-stable.git] / inventory / manage / items.php
index 5fdc7026f4b673ecdaca6578fe3eb11313cc8b82..666486f08b94ddd1295210e20c122d80e8547feb 100644 (file)
@@ -15,6 +15,8 @@ include($path_to_root . "/includes/session.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
+if ($use_date_picker)
+       $js .= get_js_date_picker();
        
 page(_($help_context = "Items"), false, false, "", $js);
 
@@ -450,8 +452,8 @@ if (!$stock_id)
 
 tabbed_content_start('tabs', array(
                'settings' => array(_('&General settings'), $stock_id),
-               'movement' => array(_('Inventory Item &Movement'), $stock_id),
-               'status' => array(_('Inventory Item &Status'), $stock_id),
+               'movement' => array(_('&Transactions'), $stock_id),
+               'status' => array(_('&Status'), $stock_id),
        ));
        
        switch (get_post('_tabs_sel')) {
@@ -462,13 +464,11 @@ tabbed_content_start('tabs', array(
                case 'movement':
                        $_GET['stock_id'] = $stock_id;
                        $_GET['popup'] = 1;
-                       $_SERVER['REQUEST_METHOD'] = 'GET';                     
                        include_once($path_to_root."/inventory/inquiry/stock_movements.php");
                        break;
                case 'status':
                        $_GET['stock_id'] = $stock_id;
                        $_GET['popup'] = 1;
-                       $_SERVER['REQUEST_METHOD'] = 'GET';                     
                        include_once($path_to_root."/inventory/inquiry/stock_status.php");
                        break;
        };
@@ -483,5 +483,5 @@ end_form();
 
 //------------------------------------------------------------------------------------
 
-end_page();
+end_page(@$_REQUEST['popup']);
 ?>