TR: Show "Grand Total" only if it has been generated.

This commit is contained in:
Christopher Lam 2018-03-01 21:23:55 +08:00
parent cb18d3ca42
commit 546b54c976

View File

@ -1703,7 +1703,9 @@ tags within description, notes or memo. ")
(string-join (map (lambda (row)
(row->html row list-of-cols))
list-of-rows) "")
(row->html 'row-total list-of-cols)
(if (memq 'row-total (grid-rows grid))
(row->html 'row-total list-of-cols)
"")
"</tbody></table>\n"))