tweak for cash flow

This commit is contained in:
Bryce Covert
2022-12-12 14:05:57 -08:00
parent 89c32a95fa
commit e88f015d1d
3 changed files with 116 additions and 57 deletions

View File

@@ -71,6 +71,8 @@
(conj acc (merge {:id (str account-id "-" location)
:location (or location "")
:count count
:debits debit
:credits credit
:amount (if account-type (if (#{:account-type/asset
:account-type/dividend
:account-type/expense} account-type)
@@ -609,6 +611,8 @@
{:balance_sheet_account
{:fields {:id {:type 'String}
:amount {:type 'String}
:debits {:type :money}
:credits {:type :money}
:location {:type 'String}
:client_id {:type :id}
:count {:type 'Int}