From: Joe Hunt Date: Wed, 7 Dec 2011 23:30:47 +0000 (+0100) Subject: Put correct bank account on receipt. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=079117d20445fb93cbf45ca81279751e7dcc028a;p=textcart.git Put correct bank account on receipt. --- 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']);