X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep107.php;h=a125995dce7b5a04d4818f0eadbc441cdca21de0;hb=3974cfebf97c03e07b0beb608ae63b84b1e0f908;hp=aaade9058bb9517fb1cf4cddb11499451354621a;hpb=0518849c28cc497af72168ec4c6713c1a191c0be;p=fa-stable.git diff --git a/reporting/rep107.php b/reporting/rep107.php index aaade905..a125995d 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -97,7 +97,10 @@ function print_invoices() $sign = 1; $myrow = get_customer_trans($row['trans_no'], ST_SALESINVOICE); - if($customer && $myrow['debtor_no'] != $customer) { + if ($customer && $myrow['debtor_no'] != $customer) { + continue; + } + if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) { continue; } $baccount = get_default_bank_account($myrow['curr_code']);