projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merged changes from main trunk up to version_2_1_4
[fa-stable.git]
/
sales
/
includes
/
db
/
cust_trans_db.inc
diff --git
a/sales/includes/db/cust_trans_db.inc
b/sales/includes/db/cust_trans_db.inc
index fb98b62fe284ce0e5bf4e580b0c39efe19774035..2e681f7f7e11e464b9fb286555fccabc68436b39 100644
(file)
--- 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);