Adds the ability to find unresolved transactions

This commit is contained in:
Bryce Covert
2020-12-16 08:09:54 -08:00
parent c2407a73c6
commit 1534175608
4 changed files with 22 additions and 2 deletions

View File

@@ -101,6 +101,12 @@
'[?tas :transaction-account/location ?location]]}
:args [(:location args)]})
(:unresolved args)
(merge-query {:query {:where ['(or-join [?e]
(not [?e :transaction/accounts])
(and [?e :transaction/accounts ?tas]
(not [?tas :transaction-account/account])))]}})
(:description args)
(merge-query {:query {:in ['?description]
:where ['[?e :transaction/description-original ?do]

View File

@@ -600,7 +600,8 @@
:start {:type 'Int}
:per_page {:type 'Int}
:sort {:type '(list :sort_item)}
:approval_status {:type :transaction_approval_status} }}
:approval_status {:type :transaction_approval_status}
:unresolved {:type 'Boolean}}}
:ledger_filters {:fields {:client_id {:type :id}
:vendor_id {:type :id}