X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fpayment_db.inc;h=766648533351281e718ebcde127902624c4722e8;hb=70840a5223cf5c9f31d360946225bbad6a2a1943;hp=3fd0164bad6caa092a5e77a584366912f45f7fbb;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/sales/includes/db/payment_db.inc b/sales/includes/db/payment_db.inc index 3fd0164b..76664853 100644 --- a/sales/includes/db/payment_db.inc +++ b/sales/includes/db/payment_db.inc @@ -34,10 +34,10 @@ function write_customer_payment($trans_no, $customer_id, $branch_id, $bank_accou $company_record = get_company_prefs(); if ($trans_no != 0) { - delete_comments(ST_CUSTPAYMENT, $trans_no); - void_bank_trans(ST_CUSTPAYMENT, $trans_no, true); - void_gl_trans(ST_CUSTPAYMENT, $trans_no, true); - void_cust_allocations(ST_CUSTPAYMENT, $trans_no, $date_); + delete_comments(ST_CUSTPAYMENT, $trans_no); + void_bank_trans(ST_CUSTPAYMENT, $trans_no, true); + void_gl_trans(ST_CUSTPAYMENT, $trans_no, true); + void_cust_allocations(ST_CUSTPAYMENT, $trans_no, $date_); } $bank = get_bank_account($bank_account);