X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep107.php;h=d3f74dd7999b3e826cc0443fa59196c95edd2b8c;hb=d5618f84e921515fa6ce6ec05180f0651119c297;hp=b0f6be77e307e57d020eb8dc298c2dcca50f8d18;hpb=7dbc765886bff602f03ff53414d48eeb557c6944;p=fa-stable.git diff --git a/reporting/rep107.php b/reporting/rep107.php index b0f6be77..d3f74dd7 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -75,7 +75,10 @@ function print_invoices() $sign = 1; $myrow = get_customer_trans($i, 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']);