final fix
This commit is contained in:
@@ -127,7 +127,7 @@
|
|||||||
(fn [[so-far a] next]
|
(fn [[so-far a] next]
|
||||||
(let [new-a (+ a (or (:colspan next)
|
(let [new-a (+ a (or (:colspan next)
|
||||||
1))]
|
1))]
|
||||||
(if (<= new-a n)
|
(if (> new-a n)
|
||||||
[(conj so-far next) new-a]
|
[(conj so-far next) new-a]
|
||||||
[so-far new-a])))
|
[so-far new-a])))
|
||||||
|
|
||||||
|
|||||||
@@ -566,10 +566,10 @@
|
|||||||
(into rows
|
(into rows
|
||||||
;; TODO colspan ?
|
;; TODO colspan ?
|
||||||
(concat (when (seq (:journal-entries category))
|
(concat (when (seq (:journal-entries category))
|
||||||
[[{:value (str "Total " (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)) )
|
[[{:value (str "Total" )
|
||||||
:colspan 2
|
:bold true}
|
||||||
|
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))
|
||||||
:bold true}
|
:bold true}
|
||||||
{:value ""}
|
|
||||||
{:value ""}
|
{:value ""}
|
||||||
{:value (:total category)
|
{:value (:total category)
|
||||||
:format :dollar}]])
|
:format :dollar}]])
|
||||||
@@ -584,10 +584,10 @@
|
|||||||
{:value (get je :running-balance)
|
{:value (get je :running-balance)
|
||||||
:format :dollar}])
|
:format :dollar}])
|
||||||
(:journal-entries category))
|
(:journal-entries category))
|
||||||
[[{:value (str "Total " (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)) )
|
[[{:value (str "Total" )
|
||||||
:colspan 2
|
:bold true}
|
||||||
|
{:value (str (client-codes (:client-id category)) " - " (:location category) " - " (:name (:account category)))
|
||||||
:bold true}
|
:bold true}
|
||||||
{:value ""}
|
|
||||||
{:value ""}
|
{:value ""}
|
||||||
{:value (:total category)
|
{:value (:total category)
|
||||||
:format :dollar}]]))
|
:format :dollar}]]))
|
||||||
|
|||||||
Reference in New Issue
Block a user