X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fpayment_db.inc;h=766648533351281e718ebcde127902624c4722e8;hb=ac28b765bd97e55707707abe96bb37c99da6d6c9;hp=4aa4d4e1ff6f5f89efe5468e2852948955d93664;hpb=fa43a9c974d05b77517a0d8e3e510ef4a088632e;p=fa-stable.git diff --git a/sales/includes/db/payment_db.inc b/sales/includes/db/payment_db.inc index 4aa4d4e1..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); @@ -166,4 +166,3 @@ function get_cust_bank_charge($type, $trans_no) return $myrow['0']; } -?> \ No newline at end of file