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

Or the selection routine can't show the descendants you want.
pull/1526/head
John Ralls 3 years ago
parent 730d8bd730
commit f54927d9cf

@ -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"

@ -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

@ -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"

Loading…
Cancel
Save