balance sheet fixes
This commit is contained in:
@@ -133,6 +133,7 @@
|
||||
|
||||
|
||||
(do
|
||||
(println "INVOICES")
|
||||
(auto-ap.datomic/audit-transact-batch (->> (dc/q '[:find ?e ?c
|
||||
:in $
|
||||
:where [?e :invoice/client ?c]]
|
||||
@@ -143,6 +144,7 @@
|
||||
:invoice/client c})))
|
||||
|
||||
{:user/name "hydrate-tuples"})
|
||||
(println "TRANSACTIONS")
|
||||
(auto-ap.datomic/audit-transact-batch (->> (dc/q '[:find ?e ?c
|
||||
:in $
|
||||
:where [?e :transaction/client ?c]]
|
||||
@@ -154,6 +156,7 @@
|
||||
|
||||
{:user/name "hydrate-tuples"})
|
||||
|
||||
(println "JOURNALS")
|
||||
(auto-ap.datomic/audit-transact-batch (->> (dc/q '[:find ?e ?c
|
||||
:in $
|
||||
:where [?e :journal-entry/client ?c]]
|
||||
@@ -165,4 +168,16 @@
|
||||
|
||||
{:user/name "hydrate-tuples"})
|
||||
|
||||
(println "PAYMENTS")
|
||||
(auto-ap.datomic/audit-transact-batch (->> (dc/q '[:find ?e ?c
|
||||
:in $
|
||||
:where [?e :payment/client ?c]]
|
||||
(dc/db conn)
|
||||
)
|
||||
(map (fn [[i c]]
|
||||
{:db/id i
|
||||
:payment/client c})))
|
||||
|
||||
{:user/name "hydrate-tuples"})
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user