Merged changes from main CVS up to 2.1.5
[fa-stable.git] / sales / includes / db / payment_db.inc
index 8ae5bdf3c1d3e0f4fd7227f1f80b11c0ce2fe70f..e88bf4d630431be8b33dbb29ddc8aa07182a760b 100644 (file)
@@ -74,7 +74,7 @@ function write_customer_payment($trans_no, $customer_id, $branch_id, $bank_accou
        /*now enter the bank_trans entry */
        add_bank_trans(12, $payment_no, $bank_account, $ref,
                $date_, $amount - $charge, payment_person_types::customer(), $customer_id,
-               get_customer_currency($customer_id));
+               get_customer_currency($customer_id), "", $rate);
 
        add_comments(12, $payment_no, $date_, $memo_);