This commit is contained in:
Bryce Covert
2021-01-04 19:26:32 -08:00
6 changed files with 120 additions and 114 deletions

View File

@@ -40,12 +40,17 @@
:serialize #(or (:ident %) (:db/ident %) %)}
:iso_date {:parse #(time/parse % time/iso-date)
:serialize #(time/unparse % time/iso-date)}
:money {:parse #(cond (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
:money {:parse #(do
(cond (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
(int? %)
(double %)
(and (string? %)
(str/blank? %))
0.0
(int? %)
(double %)
:else
%)