diff --git a/src/clj/auto_ap/graphql/ledger.clj b/src/clj/auto_ap/graphql/ledger.clj index 6fa19f33..8aa276eb 100644 --- a/src/clj/auto_ap/graphql/ledger.clj +++ b/src/clj/auto_ap/graphql/ledger.clj @@ -555,7 +555,7 @@ :account account :journal_entries journal-entries :total (- (or (reduce + 0.0 (map #(or (:debit %) 0.0) journal-entries)) 0.0) - (or (reduce + 0.0 (map (or (:credit %) 0.0) journal-entries)) 0.0)) + (or (reduce + 0.0 (map #(or (:credit %) 0.0) journal-entries)) 0.0)) })})