From ce4a7ee12c3e3cee424adab98f07e3bf33a38d0a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 7 Dec 2011 16:16:55 +0100 Subject: [PATCH] Put correct bank account on remittance. --- reporting/rep210.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reporting/rep210.php b/reporting/rep210.php index 1b80b72..f177fbc 100644 --- a/reporting/rep210.php +++ b/reporting/rep210.php @@ -109,8 +109,9 @@ function print_remittances() $myrow = get_remittance($j, $i); if (!$myrow) continue; - $baccount = get_default_bank_account($myrow['curr_code']); - $params['bankaccount'] = $baccount['id']; + $res = get_bank_trans($j, $i); + $baccount = db_fetch($res); + $params['bankaccount'] = $baccount['bank_act']; if ($email == 1) { -- 2.30.2