Sets up multi date

This commit is contained in:
2024-10-22 23:55:02 -07:00
parent 77571e3589
commit 3da8bf054f
5 changed files with 74 additions and 68 deletions

View File

@@ -794,7 +794,7 @@
(for [client (set (map :client-id (:data pnl-data))) ]
(cond-> [{:value (str (-> pnl-data :client-codes (get client)))}]
(:include-comparison (:args pnl-data))
(> (count (:periods (:args pnl-data))) 1)
(into ["" ""]))))))
true
(conj (into [{:value "Period Ending"}]
@@ -803,7 +803,7 @@
(for [client (set (map :client-id (:data pnl-data))) ]
(cond-> [{:value (date->str (:date (:args pnl-data)))}]
(:include-comparison (:args pnl-data))
(> (count (:periods (:args pnl-data))) 1)
(into [{:value (date->str (:comparison-date (:args pnl-data)))}
{:value "+/-"}]))))))))
@@ -889,7 +889,7 @@
(negate #{:cogs :payroll :controllable :fixed-overhead :ownership-controllable}))
pnl-datas)
"Retained Earnings")))
table (if (:include-comparison (:args pnl-data))
table (if (> (count (:periods pnl-data)) 1)
(append-deltas table)
table)]
{:warning (warning-message pnl-data)