Supplier info not shown on gl inquiry for bank account.
authorJoe <unknown>
Fri, 7 Feb 2014 00:13:21 +0000 (01:13 +0100)
committerJoe <unknown>
Fri, 7 Feb 2014 00:13:21 +0000 (01:13 +0100)
purchasing/includes/db/supp_payment_db.inc

index 50ecfe2d5ab1e345036ef6f874d2e089c314f568..ca7ad7db502926d213de46e0877f4399c9cd4a2f 100644 (file)
@@ -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)