Fixed include file issue in sales order entry.
[fa-stable.git] / purchasing / includes / db / supp_payment_db.inc
index 65b21b5a9a9a5792f7cc88c5b2319ba05676e6fe..a90a305890181c490d4c7f11575b9193b9d14939 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)