Force status to integer value before writing database.
[fa-stable.git] / purchasing / includes / db / supp_payment_db.inc
index f4a0e27f622162d1d1520902ae841438eda59a26..9628ac76c7783e1098b017a019e7177c4ce76fd8 100644 (file)
@@ -78,7 +78,7 @@ function add_supp_payment($supplier_id, $date_, $bank_account,
 
    /*now enter the bank_trans entry */
        add_bank_trans($trans_type, $payment_id, $bank_account, $ref,
-               $date_, -($amount + $supp_charge), PT_SUPPLIER,
+               $date_, -($amount + $charge), PT_SUPPLIER,
                $supplier_id, $bank_account_currency,
                "Could not add the supplier payment bank transaction");