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
This commit is contained in:
christopherlam 2017-08-01 19:34:46 +08:00 committed by Geert Janssens
parent 54f9cd69af
commit 0bb972cd02

View File

@ -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))
)
)