Bug 798078 - Report 'Income Chart' prints stacktrace when end date before start date

This commit is contained in:
Christopher Lam 2021-01-14 23:00:18 +08:00
parent 6605a6eb66
commit d009ba3dc8

View File

@ -281,6 +281,14 @@ developing over time"))
(gnc:html-make-no-account-warning
report-title (gnc:report-id report-obj))))
((<= to-date-t64 from-date-t64)
(gnc:html-document-add-object!
document
(gnc:html-make-generic-warning
report-title (gnc:report-id report-obj)
(G_ "Invalid dates")
(G_ "Start date must be earlier than End date"))))
(else
(let* ((commodity-list (gnc:accounts-get-commodities
(gnc:accounts-and-all-descendants accounts)