mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[budget-income-statement.scm] don't allow periods > num-periods
This commit is contained in:
parent
4de4132c42
commit
1697e53610
@ -402,6 +402,13 @@
|
||||
report-title
|
||||
(G_ "Reporting range end period cannot be less than start period."))))
|
||||
|
||||
((and use-budget-period-range?
|
||||
(< (gnc-budget-get-num-periods budget) user-budget-period-end))
|
||||
(gnc:html-document-add-object!
|
||||
doc (gnc:html-make-generic-simple-warning
|
||||
report-title
|
||||
(G_ "Reporting range end period cannot exceed number of periods in budget"))))
|
||||
|
||||
(else
|
||||
;; Get all the balances for each of the account types.
|
||||
(let* ((revenue-account-balances
|
||||
|
Loading…
Reference in New Issue
Block a user