X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fcust_trans_db.inc;h=2e681f7f7e11e464b9fb286555fccabc68436b39;hb=9b852b19c91b5af6400cf94a9ff65d37d1a730b4;hp=fb98b62fe284ce0e5bf4e580b0c39efe19774035;hpb=f58466eea31b624deacaf5e5cd4b9de7995e0373;p=fa-stable.git diff --git a/sales/includes/db/cust_trans_db.inc b/sales/includes/db/cust_trans_db.inc index fb98b62f..2e681f7f 100644 --- a/sales/includes/db/cust_trans_db.inc +++ b/sales/includes/db/cust_trans_db.inc @@ -101,6 +101,9 @@ function write_customer_trans($trans_type, $trans_no, $debtor_no, $BranchNo, $SQLDueDate = "0000-00-00"; else $SQLDueDate = date2sql($due_date); + + if ($trans_type == systypes::bank_payment()) + $Total = -$Total; if ($new) { $trans_no = get_next_trans_no($trans_type);