From d5dcfcbe3cfa898db1a8fe8961181eb25ff35308 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 23 Dec 2022 14:12:24 -0800 Subject: [PATCH] pretty sure this fixes the problem. --- src/clj/auto_ap/graphql/ledger.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/graphql/ledger.clj b/src/clj/auto_ap/graphql/ledger.clj index 61c88329..52705d50 100644 --- a/src/clj/auto_ap/graphql/ledger.clj +++ b/src/clj/auto_ap/graphql/ledger.clj @@ -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