Currency filter not working in documents.
[fa-stable.git] / reporting / rep111.php
index 0bbf04259a95c54020e85e5feb1ce2d21aeb361c..6eeda915e4b3e4d73d5b0a32002308bc0d988e78 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"]);