Rerun of rep107. Currency filter not working in documents.
authorJoe <unknown>
Fri, 13 Feb 2015 21:46:35 +0000 (22:46 +0100)
committerJoe <unknown>
Fri, 13 Feb 2015 21:46:35 +0000 (22:46 +0100)
reporting/rep107.php

index 6e0307ea80e9df2b482e4df80715df2bc9f4daf1..d3f74dd7999b3e826cc0443fa59196c95edd2b8c 100644 (file)
@@ -75,7 +75,7 @@ function print_invoices()
                        $sign = 1;
                        $myrow = get_customer_trans($i, ST_SALESINVOICE);
 
-                       if($customer != ALL_TEXT && $myrow['debtor_no'] != $customer) {
+                       if ($customer && $myrow['debtor_no'] != $customer) {
                                continue;
                        }
                        if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {