mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Finish implementing the "Show zero balance owners" filter option.
It always showed nothing before.
This commit is contained in:
parent
95816477e4
commit
a028ae0f98
@ -1069,13 +1069,7 @@ gnc_plugin_page_owner_tree_filter_owners (GncOwner *owner,
|
||||
|
||||
if (!fd->show_zero_total)
|
||||
{
|
||||
/* FIXME I'm not aware of any functions to get an owner's "balance" yet.
|
||||
* This should be implemented before this function does anything useful.
|
||||
* The code below is copied from the tree-view-account source to serve
|
||||
* as an example.
|
||||
total = gncOwnerGetBalanceInCurrency (owner, NULL, TRUE);
|
||||
*/
|
||||
total = gnc_numeric_zero();
|
||||
total = gncOwnerGetBalanceInCurrency (owner, NULL);
|
||||
if (gnc_numeric_zero_p(total))
|
||||
{
|
||||
LEAVE(" hide: zero balance");
|
||||
|
Loading…
Reference in New Issue
Block a user