Fixed sales database design to ensure document relations consistency on line level.
[fa-stable.git] / sales / includes / db / payment_db.inc
index a73bc8ad237fab478412f22e8298a1439412ba42..2f9e5ac2a44242495686709f47529b1c82bcc3f6 100644 (file)
@@ -22,7 +22,7 @@ function write_customer_payment($trans_no, $customer_id, $branch_id, $bank_accou
        $company_record = get_company_prefs();
 
        $payment_no = write_customer_trans(ST_CUSTPAYMENT, $trans_no, $customer_id, $branch_id, 
-               $date_, $ref, $amount, $discount, 0, 0, 0, 0, 0, 0, 0, "", 0, $rate);
+               $date_, $ref, $amount, $discount, 0, 0, 0, 0, 0, 0, "", 0, $rate);
 
        $bank_gl_account = get_bank_gl_account($bank_account);