From: Joe Hunt Date: Mon, 7 Nov 2011 10:58:32 +0000 (+0100) Subject: Fixed small bug in sales orders inquiry, page title. X-Git-Tag: 2.3-final~534 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1f4213f8b56865e1519b73f72855004958a67ad3;p=fa-stable.git Fixed small bug in sales orders inquiry, page title. --- diff --git a/sales/inquiry/sales_orders_view.php b/sales/inquiry/sales_orders_view.php index 39b26f2a..f59be9c0 100644 --- a/sales/inquiry/sales_orders_view.php +++ b/sales/inquiry/sales_orders_view.php @@ -24,15 +24,7 @@ set_page_security( @$_POST['order_view_mode'], array( 'OutstandingOnly' => 'SA_SALESDELIVERY', 'InvoiceTemplates' => 'SA_SALESINVOICE') ); -if (!@$_GET['popup']) -{ - $js = ""; - if ($use_popup_windows) - $js .= get_js_open_window(900, 600); - if ($use_date_picker) - $js .= get_js_date_picker(); - page($_SESSION['page_title'], false, false, "", $js); -} + if (get_post('type')) $trans_type = $_POST['type']; elseif (isset($_GET['type']) && $_GET['type'] == ST_SALESQUOTE) @@ -69,6 +61,16 @@ else $_SESSION['page_title'] = _($help_context = "Search All Sales Quotations"); } +if (!@$_GET['popup']) +{ + $js = ""; + if ($use_popup_windows) + $js .= get_js_open_window(900, 600); + if ($use_date_picker) + $js .= get_js_date_picker(); + page($_SESSION['page_title'], false, false, "", $js); +} + if (isset($_GET['selected_customer'])) { $selected_customer = $_GET['selected_customer'];