tweaks for totals.

This commit is contained in:
2022-11-16 09:52:28 -08:00
parent ca7d6f20c4
commit 2050c0da33
3 changed files with 109 additions and 73 deletions

View File

@@ -586,24 +586,23 @@
{:value (get je :running-balance)
:format :dollar}])
(:journal-entries category))
(when (seq (:journal-entries category))
[[
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))
:bold true
:border [:top]}
{:value ""
:border [:top]}
{:value (str "Total" )
:bold true
:border [:top]}
{:value ""
:border [:top]}
{:value ""
:border [:top]}
{:value (:total category)
:format :dollar
:bold true
:border [:top]}]])))
[[
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))
:bold true
:border [:top]}
{:value ""
:border [:top]}
{:value (str "Total" )
:bold true
:border [:top]}
{:value ""
:border [:top]}
{:value ""
:border [:top]}
{:value (:total category)
:format :dollar
:bold true
:border [:top]}]]))
)
[]