Currency filter not working in documents.
[fa-stable.git] / reporting / rep209.php
index c1632dfd1f1745f869ddff7d90c467af7055bbd8..31c82b0a9817a5a7cc226e0d4adc2e9fed697a35 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'];