minor fixes
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
[[:cell {}]
|
||||
[:cell {:colspan 8} (str " -- " word-amount " " (str/join "" (take (max
|
||||
2
|
||||
(- 97
|
||||
(- 95
|
||||
(count word-amount)))
|
||||
(repeat "-"))))
|
||||
[:line {:line-width 0.15 :color [50 50 50]}]]
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
:amount (reduce + 0
|
||||
(->> lines
|
||||
(map :debit)
|
||||
(map js/parseFloat)))
|
||||
(map js/parseFloat)
|
||||
(map #(if (js/isNaN %) 0 %))))
|
||||
:line-items (map (fn [{:keys [debit credit account-identifier location]}]
|
||||
{:account-identifier account-identifier
|
||||
:location location
|
||||
@@ -51,6 +52,7 @@
|
||||
:credit credit})
|
||||
lines)}))))
|
||||
|
||||
|
||||
;; EVENTS
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
|
||||
Reference in New Issue
Block a user