mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798919 - Inconsistent signs in creating budget
further Reversed Balance Accounts fixes
This commit is contained in:
parent
ccc75cfc88
commit
d47230a418
@ -1219,6 +1219,9 @@ bgv_get_total_for_account (Account *account, GncBudget *budget, gnc_commodity *n
|
||||
}
|
||||
}
|
||||
|
||||
if (gnc_reverse_balance (account))
|
||||
total = gnc_numeric_neg (total);
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
|
@ -1109,7 +1109,9 @@ allperiods_budget_helper (GtkTreeModel *model, GtkTreePath *path,
|
||||
acct = gnc_budget_view_get_account_from_path (priv->budget_view, path);
|
||||
num_periods = gnc_budget_get_num_periods (priv->budget);
|
||||
allvalue = priv->allValue;
|
||||
allvalue = gnc_numeric_neg (allvalue);
|
||||
|
||||
if (gnc_reverse_balance (acct))
|
||||
allvalue = gnc_numeric_neg (priv->allValueallvalue);
|
||||
|
||||
for (i = 0; i < num_periods; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user