X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fpayment_db.inc;h=74054b06965669e886c5e6389b6fa44a6286a4cd;hb=ec3b5ef00ee07bdf7559c8bdb6f857b7464c3fbe;hp=5197a9965064e2a2f9c1f2be240c7ba5bdbe88e9;hpb=0c1bcd8ce3c089d7ddb3722a097f8fc8417f41e6;p=fa-stable.git diff --git a/sales/includes/db/payment_db.inc b/sales/includes/db/payment_db.inc index 5197a996..74054b06 100644 --- a/sales/includes/db/payment_db.inc +++ b/sales/includes/db/payment_db.inc @@ -13,10 +13,10 @@ function write_customer_payment($trans_no, $customer_id, $branch_id, $bank_accou $customer_id, $branch_id, $date_, $ref, $amount, $discount); if ($trans_no != 0) { - delete_comments(12, $invoice_no); - void_bank_trans(12, $type_no, true); + delete_comments(12, $trans_no); + void_bank_trans(12, $trans_no, true); void_gl_trans(12, $trans_no, true); - void_cust_allocations(12, $trans_no); + void_cust_allocations(12, $trans_no, $date_); } /* Bank account entry first */