Merged changes from stable branch up to 2.3.23.
[fa-stable.git] / reporting / rep209.php
index 11d3aff98780c49557968b6cb29b72166392d329..38cbd47c45bf655eea68e39f3723a42f0c80b5a9 100644 (file)
@@ -91,6 +91,9 @@ function print_po()
        for ($i = $from; $i <= $to; $i++)
        {
                $myrow = get_po($i);
+               if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+                       continue;
+               }
                $baccount = get_default_bank_account($myrow['curr_code']);
                $params['bankaccount'] = $baccount['id'];