Skip to content

Commit

Permalink
Bug 798919 - Inconsistent signs in creating budget, bis
Browse files Browse the repository at this point in the history
bgv_get_total_for_account must return the account budget total.
  • Loading branch information
christopherlam committed Jun 5, 2023
1 parent c9c8d48 commit 60e6c23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnucash/gnome/gnc-budget-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1219,9 +1219,6 @@ bgv_get_total_for_account (Account *account, GncBudget *budget, gnc_commodity *n
}
}

if (gnc_reverse_balance (account))
total = gnc_numeric_neg (total);

return total;
}

Expand All @@ -1240,6 +1237,9 @@ budget_total_col_source (Account *account, GtkTreeViewColumn *col,
priv = GNC_BUDGET_VIEW_GET_PRIVATE(budget_view);

total = bgv_get_total_for_account (account, priv->budget, NULL);
if (gnc_reverse_balance (account))
total = gnc_numeric_neg (total);

xaccSPrintAmount (amtbuff, total, gnc_account_print_info (account, TRUE));

if (priv->use_red_color && gnc_numeric_negative_p (total))
Expand Down

0 comments on commit 60e6c23

Please sign in to comment.