[c++options] Parent account types must be included in the types list

Or the selection routine can't show the descendants you want.
This commit is contained in:
John Ralls 2023-02-03 16:35:52 -08:00
parent 730d8bd730
commit f54927d9cf
3 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ by preventing negative stock balances.<br/>")
(filter gnc:account-is-stock?
(gnc-account-get-descendants-sorted
(gnc-get-current-root-account)))
(list ACCT-TYPE-STOCK))
(list ACCT-TYPE-ASSET ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL))
(gnc-register-simple-boolean-option options
gnc:pagename-accounts optname-zero-shares "e"

View File

@ -147,7 +147,7 @@
(filter gnc:account-is-stock?
(gnc-account-get-descendants-sorted
(gnc-get-current-root-account)))
(list ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL))
(list ACCT-TYPE-ASSET ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL))
(gnc-register-simple-boolean-option options
gnc:pagename-accounts

View File

@ -65,7 +65,7 @@
(gnc:filter-accountlist-type
(list ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL)
(gnc-account-get-descendants-sorted (gnc-get-current-root-account)))
(list ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL))
(list ACCT-TYPE-ASSET ACCT-TYPE-STOCK ACCT-TYPE-MUTUAL))
(gnc-register-simple-boolean-option options
gnc:pagename-accounts optname-zero-shares "e"