From: Joe Hunt Date: Wed, 7 Dec 2011 23:30:47 +0000 (+0100) Subject: Put correct bank account on receipt. X-Git-Tag: 2.3-final~517 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f45d7b84cfb7992102cfafec4c6e39aa35d914da;p=fa-stable.git Put correct bank account on receipt. --- diff --git a/reporting/rep112.php b/reporting/rep112.php index acfe7394..c13df00d 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']);