Small cleanups in mail class.
[fa-stable.git] / reporting / rep113.php
index 4f20bd92a6a72e82b6285c3b3356505d0d914aaf..acf855c426618f39bd1e18ff7df4caf6bfc386be 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'];