Skip to content

Commit

Permalink
[average-balance] add styling to data table
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Sep 16, 2018
1 parent ce58549 commit 395b42d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions gnucash/report/standard-reports/average-balance.scm
Original file line number Diff line number Diff line change
Expand Up @@ -555,17 +555,15 @@
table columns)
(for-each
(lambda (row)
(gnc:html-table-append-row! table row))
(gnc:html-table-append-row!
table
(map
gnc:make-html-table-cell/markup
(list "date-cell" "date-cell"
"number-cell" "number-cell" "number-cell"
"number-cell" "number-cell" "number-cell")
row)))
data)

;; set numeric columns to align right
(for-each
(lambda (col)
(gnc:html-table-set-col-style!
table col "td"
'attribute (list "align" "right")))
'(2 3 4 5 6 7))

(gnc:html-document-add-object! document table))))

;; if there are no accounts selected...
Expand Down

0 comments on commit 395b42d

Please sign in to comment.