minor tweak for vendor total

This commit is contained in:
2024-04-23 08:27:12 -07:00
parent 095fdc1d2f
commit 633973cde4

View File

@@ -55,7 +55,7 @@
(defn lookup-invoice-total-data [request]
(let [start (:start-date (:query-params request) (time/plus (time/now) (time/days -30)))
end (:start-date (:query-params request) (time/now))
end (:end-date (:query-params request) (time/now))
query (cond-> {:query '{:find [?cn ?vn (sum ?t)]
:with [ ?e]
:in [$ [?clients ?start ?end]]