mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[commodity-utilities] prevent crash if end-date is #f
crash happens when (I think) no valid splits found.
This commit is contained in:
committed by
John Ralls
parent
eb0256e3e7
commit
d12ee9a4fc
@@ -48,8 +48,9 @@
|
|||||||
(xaccQueryAddAccountMatch query
|
(xaccQueryAddAccountMatch query
|
||||||
currency-accounts
|
currency-accounts
|
||||||
QOF-GUID-MATCH-ANY QOF-QUERY-AND)
|
QOF-GUID-MATCH-ANY QOF-QUERY-AND)
|
||||||
(xaccQueryAddDateMatchTT
|
(if end-date
|
||||||
query #f end-date #t end-date QOF-QUERY-AND)
|
(xaccQueryAddDateMatchTT
|
||||||
|
query #f end-date #t end-date QOF-QUERY-AND))
|
||||||
|
|
||||||
;; Get the query result, i.e. all splits in currency
|
;; Get the query result, i.e. all splits in currency
|
||||||
;; accounts.
|
;; accounts.
|
||||||
|
|||||||
Reference in New Issue
Block a user