pretty sure this fixes the problem.

This commit is contained in:
Bryce Covert
2022-12-23 14:12:24 -08:00
parent 27603fff6e
commit d5dcfcbe3c

View File

@@ -609,7 +609,7 @@
:location location
:account (or account
{:name (str "All " (name category))})
:journal_entries (when account (sort-by :date journal-entries))
:journal_entries (when account journal-entries)
:total (- (or (reduce + 0.0 (map #(or (:credit %) 0.0) journal-entries)) 0.0)
(or (reduce + 0.0 (map #(or (:debit %) 0.0) journal-entries)) 0.0))}))
result {:categories