mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798078 - Report 'Income Chart' prints stacktrace when end date before start date
This commit is contained in:
parent
6605a6eb66
commit
d009ba3dc8
@ -281,6 +281,14 @@ developing over time"))
|
|||||||
(gnc:html-make-no-account-warning
|
(gnc:html-make-no-account-warning
|
||||||
report-title (gnc:report-id report-obj))))
|
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
|
(else
|
||||||
(let* ((commodity-list (gnc:accounts-get-commodities
|
(let* ((commodity-list (gnc:accounts-get-commodities
|
||||||
(gnc:accounts-and-all-descendants accounts)
|
(gnc:accounts-and-all-descendants accounts)
|
||||||
|
Loading…
Reference in New Issue
Block a user