From 4c09b19388f22b15edee7024a392055418275188 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 7 Feb 2014 01:13:21 +0100 Subject: [PATCH] Supplier info not shown on gl inquiry for bank account. --- purchasing/includes/db/supp_payment_db.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/purchasing/includes/db/supp_payment_db.inc b/purchasing/includes/db/supp_payment_db.inc index 50ecfe2d..ca7ad7db 100644 --- a/purchasing/includes/db/supp_payment_db.inc +++ b/purchasing/includes/db/supp_payment_db.inc @@ -52,11 +52,11 @@ function write_supp_payment($trans_no, $supplier_id, $bank_account, { $charge_act = get_company_pref('bank_charge_act'); $total += add_gl_trans(ST_SUPPAYMENT, $payment_id, $date_, $charge_act, 0, 0, '', - $bank_charge, $bank['bank_curr_code']); + $bank_charge, $bank['bank_curr_code'], PT_SUPPLIER, $supplier_id); } $total += add_gl_trans(ST_SUPPAYMENT, $payment_id, $date_, $bank['account_code'], 0, 0, '', - -($bank_amount + $bank_charge), $bank['bank_curr_code']); + -($bank_amount + $bank_charge), $bank['bank_curr_code'], PT_SUPPLIER, $supplier_id); /*Post a balance post if $total != 0 due to variance in AP and bank posted values*/ if ($total != 0) -- 2.30.2