Improvements to performance!

This commit is contained in:
Bryce Covert
2020-12-21 19:11:48 -08:00
parent 79be7985ef
commit cfba7a0346
2 changed files with 20 additions and 17 deletions

View File

@@ -38,7 +38,7 @@
))
)
journal-entries)]
(result->page journal-entries journal-entries-count :journal_entries args)))
(result->page journal-entries journal-entries-count :journal_entries (:filters args))))
;; TODO a better way to do this might be to accumulate ALL credits and ALL debits, and then just do for credits: balance = credits - debits. and for debits balance = debits - credits
(defn credit-account? [account]