mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
ENH: Optimise Transaction Matcher filter
This commit will trigger the transaction matcher only if the search string is not empty. Will speed up filtering.
This commit is contained in:
parent
e5a7660ac0
commit
fe757dbe6a
@ -1577,7 +1577,8 @@ Credit Card, and Income accounts."))))))
|
||||
(string-contains str transaction-matcher)))))
|
||||
(and (if (eq? filter-mode 'include) (is-filter-member split c_account_2) #t)
|
||||
(if (eq? filter-mode 'exclude) (not (is-filter-member split c_account_2)) #t)
|
||||
(or (match? (xaccTransGetDescription trans))
|
||||
(or (string-null? transaction-matcher) ; null-string = ignore filters
|
||||
(match? (xaccTransGetDescription trans))
|
||||
(match? (xaccTransGetNotes trans))
|
||||
(match? (xaccSplitGetMemo split)))
|
||||
(or (not reconcile-status-filter) ; #f = ignore next filter
|
||||
|
Loading…
Reference in New Issue
Block a user