diff --git a/src/clj/auto_ap/datomic/ledger.clj b/src/clj/auto_ap/datomic/ledger.clj index 6c07ef96..39974646 100644 --- a/src/clj/auto_ap/datomic/ledger.clj +++ b/src/clj/auto_ap/datomic/ledger.clj @@ -101,7 +101,7 @@ :args [(:location args)]}) true - (merge-query {:query {:find ['?base-date '?e] :where ['[?e :journal-entry/date ?base-date] + (merge-query {:query {:find ['?sort-default '?e] :where ['[?e :journal-entry/date ?sort-default] '[?e :journal-entry/amount ?ja2] '[(not= 0.0 ?ja2)]]}}))] (->> query