Adds new expense report, with ability to break down by vendor
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user