supporting some features for brian

This commit is contained in:
Bryce Covert
2019-09-30 20:21:40 -07:00
parent c912fbed36
commit c8a7f05e28
2 changed files with 8 additions and 1 deletions

View File

@@ -41,6 +41,12 @@
:where ['[?e :journal-entry/client ?client-id]]}
:args [(:client-id args)]})
(:client-code args)
(merge-query {:query {:in ['?client-code]
:where ['[?e :journal-entry/client ?client-id]
'[?client-id :client/code ?client-code]]}
:args [(:client-code args)]})
(:to-date args)
(merge-query {:query {:in ['?to-date]
:where ['[?e :journal-entry/date ?d]

View File

@@ -61,7 +61,8 @@
(map <-graphql))
conj
(list)
(first (d-ledger/get-graphql {}))))
(first (d-ledger/get-graphql {:count Integer/MAX_VALUE
:client-code (query-params "client-code")}))))
(GET "/transactions/export" {:keys [query-params identity]}
(assert-admin identity)