Couldn't use the date picker in the new transaction tabs in customer/supplier/items.
[fa-stable.git] / purchasing / manage / suppliers.php
index 34ab0bae116a27349689c65bcead7faa99278895..b545115e9c7d8a60ce91c506ae58d45cd386c7d8 100644 (file)
 ***********************************************************************/
 $page_security = 'SA_SUPPLIER';
 $path_to_root = "../..";
-include($path_to_root . "/includes/session.inc");
+include($path_to_root . "/includes/db_pager.inc");
+include_once($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 = "Suppliers"), @$_REQUEST['popup'], false, "", $js);
 
@@ -302,7 +305,8 @@ if (!$supplier_id)
 tabbed_content_start('tabs', array(
                'settings' => array(_('&General settings'), $supplier_id),
                'contacts' => array(_('&Contacts'), $supplier_id),
-               'transactions' => array(_('&Supplier Inquiry'), $supplier_id),
+               'transactions' => array(_('&Transactions'), $supplier_id),
+               'orders' => array(_('Purchase &Orders'), $supplier_id),
        ));
        
        switch (get_post('_tabs_sel')) {
@@ -317,10 +321,13 @@ tabbed_content_start('tabs', array(
                case 'transactions':
                        $_GET['supplier_id'] = $supplier_id;
                        $_GET['popup'] = 1;
-                       $_SERVER['REQUEST_METHOD'] = 'GET';                     
                        include_once($path_to_root."/purchasing/inquiry/supplier_inquiry.php");
                        break;
                case 'orders':
+                       $_GET['supplier_id'] = $supplier_id;
+                       $_GET['popup'] = 1;
+                       include_once($path_to_root."/purchasing/inquiry/po_search_completed.php");
+                       break;
        };
 br();
 tabbed_content_end();