X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fsales_orders_view.php;h=f59be9c028bb5de375939bc49421bd8c3b1dbdb1;hb=1f4213f8b56865e1519b73f72855004958a67ad3;hp=39b26f2a8f8a271ee6c16eef607b7d614cc8fb63;hpb=0c2e1ad5a4a99f2ede945a132d3f1f8686c67099;p=fa-stable.git 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'];