Adds new expense report, with ability to break down by vendor

This commit is contained in:
2024-04-19 21:48:28 -07:00
parent 706924c21c
commit 22e92c819b
12 changed files with 141 additions and 45 deletions

View File

@@ -36,6 +36,12 @@
localize
(f/unparse excel-formatter )))
(def iso-formatter (f/with-zone (f/formatter "yyyy-MM-dd") (time/time-zone-for-id "America/Los_Angeles")))
(defn iso-date [d]
(->> d
(coerce/to-date-time)
localize
(f/unparse iso-formatter )))
(defn sales-orders-in-range [db client start end]
(let [end (or end #inst "2050-01-01")]