projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4c7f6c
)
Reconcile Bank Account added filter up to reconcile data.
author
Joe
<joe.hunt.consulting@gmail.com>
Sun, 25 Dec 2022 09:55:18 +0000
(10:55 +0100)
committer
Joe
<joe.hunt.consulting@gmail.com>
Sun, 25 Dec 2022 09:55:18 +0000
(10:55 +0100)
gl/includes/db/gl_db_bank_accounts.inc
patch
|
blob
|
history
diff --git
a/gl/includes/db/gl_db_bank_accounts.inc
b/gl/includes/db/gl_db_bank_accounts.inc
index ea9a83ac08ce06ca699cfe2a49c97185f335cf15..08a05242abd02f19d8f66f1ad2000fa136419614 100644
(file)
--- a/
gl/includes/db/gl_db_bank_accounts.inc
+++ b/
gl/includes/db/gl_db_bank_accounts.inc
@@
-283,7
+283,7
@@
function get_sql_for_bank_account_reconcile($bank_account, $date)
LEFT JOIN ".TB_PREF."comments c ON c.type = bt.type AND c.id = bt.trans_no
WHERE bank_act = ".db_escape($bank_account) . "
AND (reconciled IS NULL OR reconciled='". date2sql($date) ."')
- AND amount != 0
+ AND amount != 0
AND trans_date <= '". date2sql($date) ."'
ORDER BY trans_date, bt.id";
return $sql;