Merged changes from stable branch up to 2.3.23.
[fa-stable.git] / reporting / rep111.php
index df2b2dbe7378606d0a823d95850fb43eeec08e40..45c5ab999e4be66466387c6dc2a6c6786ade4d60 100644 (file)
@@ -68,6 +68,9 @@ function print_sales_quotations()
        for ($i = $from; $i <= $to; $i++)
        {
                $myrow = get_sales_order_header($i, ST_SALESQUOTE);
+               if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+                       continue;
+               }
                $baccount = get_default_bank_account($myrow['curr_code']);
                $params['bankaccount'] = $baccount['id'];
                $branch = get_branch($myrow["branch_code"]);