Bug 798919 - Inconsistent signs in creating budget

further Reversed Balance Accounts fixes
This commit is contained in:
Christopher Lam 2023-06-04 08:20:10 +08:00
parent ccc75cfc88
commit d47230a418
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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++)
{