Finish implementing the "Show zero balance owners" filter option.

It always showed nothing before.
This commit is contained in:
Mike Alexander 2014-08-31 01:56:49 -04:00
parent 95816477e4
commit a028ae0f98

View File

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