Currency filter not working in documents.
[fa-stable.git] / reporting / rep112.php
index 45851689473a163daf57bebcd9c4216fa080ea35..4662a785ea92f04c33ae471eb0910fd0ef62cc97 100644 (file)
@@ -111,6 +111,9 @@ function print_receipts()
                        $myrow = get_receipt($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'];