Fixes logging issues.
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
(update m (:db/ident (:ledger-mapped/ledger-side item)) (fnil + 0.0) (:ledger-mapped/amount item 0.0)))
|
(update m (:db/ident (:ledger-mapped/ledger-side item)) (fnil + 0.0) (:ledger-mapped/amount item 0.0)))
|
||||||
{:account account}
|
{:account account}
|
||||||
acc-items))))
|
acc-items))))
|
||||||
_ (clojure.pprint/pprint aggregated)
|
|
||||||
line-items (mapv (fn [{:keys [account] :as m}]
|
line-items (mapv (fn [{:keys [account] :as m}]
|
||||||
(cond-> {:db/id (str (java.util.UUID/randomUUID))
|
(cond-> {:db/id (str (java.util.UUID/randomUUID))
|
||||||
:journal-entry-line/account account
|
:journal-entry-line/account account
|
||||||
@@ -29,8 +28,7 @@
|
|||||||
aggregated)
|
aggregated)
|
||||||
|
|
||||||
total-debits (reduce + 0.0 (map #(get % :ledger-side/debit 0.0) aggregated))
|
total-debits (reduce + 0.0 (map #(get % :ledger-side/debit 0.0) aggregated))
|
||||||
total-credits (reduce + 0.0 (map #(get % :ledger-side/credit 0.0) aggregated))
|
total-credits (reduce + 0.0 (map #(get % :ledger-side/credit 0.0) aggregated))]
|
||||||
_ (clojure.pprint/pprint [total-debits total-credits])]
|
|
||||||
(when (and (seq line-items)
|
(when (and (seq line-items)
|
||||||
(= (Math/round (* 1000 total-debits))
|
(= (Math/round (* 1000 total-debits))
|
||||||
(Math/round (* 1000 total-credits))))
|
(Math/round (* 1000 total-credits))))
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user