Currency filter not working in documents.
[fa-stable.git] / reporting / rep210.php
index 2500067060bca211619a124473c9fca024d0ce77..5b7634d2a1ece014c3aedbb04f8ee5081bb54353 100644 (file)
@@ -108,6 +108,9 @@ function print_remittances()
                        $myrow = get_remittance($j, $i);
                        if (!$myrow)
                                continue;                       
+                       if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+                               continue;
+                       }
                        $res = get_bank_trans($j, $i);
                        $baccount = db_fetch($res);
                        $params['bankaccount'] = $baccount['bank_act'];