Fix income statement when trading accounts not used

Fix cosmetic bug
http://gnucash.1415818.n4.nabble.com/unknown-column-in-Income-Statement-Profit-amp-Loss-td4680661.html#a4692940

Insert empty-cell instead of #unspecified result of (if predicate? result-if-true) where predicate? is #false
pull/166/merge
christopherlam 9 years ago committed by Geert Janssens
parent 54f9cd69af
commit 0bb972cd02

@ -647,14 +647,16 @@
(if standard-order?
(list
(gnc:make-html-table-cell inc-table)
(if (not (null? trading-accounts))
(if (null? trading-accounts)
(gnc:html-make-empty-cell)
(gnc:make-html-table-cell tra-table))
(gnc:make-html-table-cell exp-table)
)
(list
(gnc:make-html-table-cell exp-table)
(gnc:make-html-table-cell inc-table)
(if (not (null? trading-accounts))
(if (null? trading-accounts)
(gnc:html-make-empty-cell)
(gnc:make-html-table-cell tra-table))
)
)

Loading…
Cancel
Save