From 079117d20445fb93cbf45ca81279751e7dcc028a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 8 Dec 2011 00:30:47 +0100 Subject: [PATCH] Put correct bank account on receipt. --- reporting/rep112.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reporting/rep112.php b/reporting/rep112.php index acfe739..c13df00 100644 --- a/reporting/rep112.php +++ b/reporting/rep112.php @@ -106,8 +106,9 @@ function print_receipts() $myrow = get_receipt($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']; $rep->title = _('RECEIPT'); $contacts = get_branch_contacts($myrow['branch_code'], 'invoice', $myrow['debtor_no']); -- 2.30.2