slightly better report

This commit is contained in:
2022-10-17 06:23:39 -07:00
parent fb607b3345
commit 05af4ba603
4 changed files with 90 additions and 11 deletions

View File

@@ -564,14 +564,20 @@
:rows (reduce
(fn [rows category]
(into rows
;; TODO colspan ?
(cons [{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (name (:category category)) " - " (:name (:account category)) )
:colspan 5}]
}
{:value ""}
{:value ""}
{:value ""}
{:value ""}]
(map
(fn [je]
[{:value (user-friendly-date (:date je))}
{:value (or (:description je)
(:name (:vendor je)))}
(:name (:vendor je))
"")}
{:value (get-in je [:line-items 0 :debit])
:format :dollar}
{:value (get-in je [:line-items 0 :credit])