makes POS page much less likely to break everything

This commit is contained in:
2023-04-05 22:50:38 -07:00
parent e7ae418614
commit 2a0f736af7
6 changed files with 441 additions and 501 deletions

View File

@@ -19,8 +19,11 @@
(localize (time/now)))
(defn recent-date []
(coerce/to-date (time/minus (local-now) (time/days 90))))
(defn recent-date
([]
(recent-date 90))
([n]
(coerce/to-date (time/minus (local-now) (time/days n)))))
(def excel-formatter (f/with-zone (f/formatter "MM/dd/yyyy") (time/time-zone-for-id "America/Los_Angeles")))
(defn excel-date [d]