Makes reports exportable
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
args (assoc args
|
||||
:periods (filter identity (cond-> [(:date args)]
|
||||
(:include-comparison args) (conj (:comparison-date args)))))
|
||||
clients (pull-many (dc/db conn) [:client/code :client/name :db/id] [(:client-id args)])
|
||||
clients (pull-many (dc/db conn) [:client/code :client/name :db/id] (:client-ids args))
|
||||
data (concat (->> (:balance-sheet-accounts data)
|
||||
(map (fn [b]
|
||||
(assoc b
|
||||
@@ -167,7 +167,6 @@
|
||||
|
||||
report (l-reports/summarize-balance-sheet pnl-data)
|
||||
output-stream (ByteArrayOutputStream.)]
|
||||
(log/info report)
|
||||
(pdf/pdf
|
||||
(-> [{:left-margin 10 :right-margin 10 :top-margin 15 :bottom-margin 15
|
||||
:size :letter
|
||||
|
||||
Reference in New Issue
Block a user