Cleanup in db_pager get_sql and testing it.
[fa-stable.git] / admin / view_print_transaction.php
index 5b283b4159d485458c3893c99a91484033ff515b..a386cbfdd0ff2bddd9075bf31c51ae96d710fa00 100644 (file)
@@ -113,11 +113,11 @@ function handle_search()
        if (check_valid_entries()==true)
        {
                $trans_ref = false;
-               $sql = get_sql_for_view_transactions($_POST['filterType'], $_POST['FromTransNo'], $_POST['ToTransNo'], $trans_ref);
+               $sql = get_sql_for_view_transactions(get_post('filterType'), get_post('FromTransNo'), get_post('ToTransNo'), $trans_ref);
                if ($sql == "")
                        return;
 
-               $print_type = $_POST['filterType'];
+               $print_type = get_post('filterType');
                $print_out = ($print_type == ST_SALESINVOICE || $print_type == ST_CUSTCREDIT || $print_type == ST_CUSTDELIVERY ||
                        $print_type == ST_PURCHORDER || $print_type == ST_SALESORDER || $print_type == ST_SALESQUOTE ||
                        $print_type == ST_CUSTPAYMENT || $print_type == ST_SUPPAYMENT || $print_type == ST_WORKORDER);