Currency filter not working in documents.
[fa-stable.git] / reporting / rep113.php
index f38fd4c19e3805b655ea8b28f093758d3323a430..c73388abf565650c4c097d4fa0c84f9bfe0cabda 100644 (file)
@@ -74,6 +74,9 @@ function print_credits()
                                continue;
                        $sign = -1;
                        $myrow = get_customer_trans($i, ST_CUSTCREDIT);
+                       if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+                               continue;
+                       }
                        $baccount = get_default_bank_account($myrow['curr_code']);
                        $params['bankaccount'] = $baccount['id'];