***********************************************************************/
$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);
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')) {
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();