Adds validation for external ledger import
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
(defn raw-graphql-ids [db args]
|
||||
|
||||
(let [query (cond-> {:query {:find ['?sort-default]
|
||||
(let [query (cond-> {:query {:find []
|
||||
:in ['$ ]
|
||||
:where ['[?e :journal-entry/date ?sort-default]]}
|
||||
:args [db]}
|
||||
@@ -101,12 +101,11 @@
|
||||
:args [(:location args)]})
|
||||
|
||||
true
|
||||
(merge-query {:query {:find ['?sort-default '?e] :where ['[?e :journal-entry/date ?sort-default]
|
||||
'[?e :journal-entry/amount ?ja2]
|
||||
'[(not= 0.0 ?ja2)]]}}))]
|
||||
(->> query
|
||||
(merge-query {:query {:find ['?sort-default '?e] :where ['[?e :journal-entry/date ?sort-default]]}}))]
|
||||
(->> (doto query println)
|
||||
|
||||
(d/query)
|
||||
(apply-sort-3 args)
|
||||
(apply-sort-3 (update args :sort conj {:sort-key "default-2" :asc true}))
|
||||
(apply-pagination args))))
|
||||
|
||||
(defn graphql-results [ids db args]
|
||||
|
||||
Reference in New Issue
Block a user