minor changes to support correct reporting.

This commit is contained in:
Bryce Covert
2019-04-23 14:04:28 -07:00
parent 5317310cc7
commit 0b73b076a6
2 changed files with 6 additions and 4 deletions

View File

@@ -57,8 +57,10 @@
:location location
:id (str (:db/id account) "-" location)
:numeric-code (or (:account/numeric-code account)
(and (:bank-account/type account)
1100))
(and (#{:bank-account-type/check} (:db/ident (:bank-account/type account)))
1100)
(and (#{:bank-account-type/credit} (:db/ident (:bank-account/type account)))
2800))
:account-type (or (:db/ident (:account/type account))
({:bank-account-type/check :asset
:bank-account-type/credit :liability}