sales fixes.

This commit is contained in:
Bryce Covert
2020-09-09 22:51:17 -07:00
parent 179c2d13c6
commit 477654a8ae
2 changed files with 9 additions and 4 deletions

View File

@@ -78,12 +78,14 @@
(coerce/to-string (coerce/to-local-date-time (time/to-time-zone (coerce/to-date-time d) (time/time-zone-for-id "America/Los_Angeles"))))))
(update :total parsedouble)
(update :tax parsedouble)
(update :discount parsedouble)
(update :tip parsedouble)
(update :line-items (fn [lis]
(map
(fn [li]
(-> li
(update :tax parsedouble)
(update :discount parsedouble)
(update :total parsedouble)))
lis)))
(update :charges (fn [charges]