$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']);