Currency filter not working in documents.
[fa-stable.git] / reporting / rep108.php
index b438e641c2d31153bc90755e53c3578a7b11a905..a3f76f38f9b00dbcc2b1f779a9ece7f6fd13ea52 100644 (file)
@@ -95,6 +95,9 @@ function print_statements()
 
        while ($myrow=db_fetch($result))
        {
+               if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
+                       continue;
+               }       
                $date = date('Y-m-d');
 
                $myrow['order_'] = "";