Progress on reporst
This commit is contained in:
@@ -556,7 +556,8 @@
|
||||
|
||||
|
||||
(defn journal-detail-report [args data client-codes]
|
||||
{:header [[{:value "Date"}
|
||||
{:header [[{:value "Category"}
|
||||
{:value "Date"}
|
||||
{:value "Description"}
|
||||
{:value "Debit"}
|
||||
{:value "Credit"}
|
||||
@@ -566,14 +567,17 @@
|
||||
(into rows
|
||||
;; TODO colspan ?
|
||||
(concat (when (seq (:journal-entries category))
|
||||
[[{:value (str "" )}
|
||||
[[
|
||||
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))}
|
||||
{:value ""}
|
||||
{:value ""}
|
||||
{:value ""}
|
||||
{:value ""}
|
||||
{:value ""}]])
|
||||
(map
|
||||
(fn [je]
|
||||
[{:value (user-friendly-date (:date je))}
|
||||
[{:value ""}
|
||||
{:value (user-friendly-date (:date je))}
|
||||
{:value (:description je "")}
|
||||
{:value (get je :debit)
|
||||
:format :dollar}
|
||||
@@ -582,20 +586,24 @@
|
||||
{:value (get je :running-balance)
|
||||
:format :dollar}])
|
||||
(:journal-entries category))
|
||||
[[{:value (str "Total" )
|
||||
:bold true
|
||||
:border [:top]}
|
||||
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))
|
||||
:bold true
|
||||
:border [:top]}
|
||||
{:value ""
|
||||
:border [:top]}
|
||||
{:value ""
|
||||
:border [:top]}
|
||||
{:value (:total category)
|
||||
:format :dollar
|
||||
:bold true
|
||||
:border [:top]}]]))
|
||||
(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]}]])))
|
||||
|
||||
)
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user