mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798919 - Inconsistent signs in creating budget, bis
bgv_get_total_for_account must return the account budget total.
This commit is contained in:
parent
c9c8d48910
commit
60e6c23ac9
@ -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;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1240,6 +1237,9 @@ budget_total_col_source (Account *account, GtkTreeViewColumn *col,
|
|||||||
priv = GNC_BUDGET_VIEW_GET_PRIVATE(budget_view);
|
priv = GNC_BUDGET_VIEW_GET_PRIVATE(budget_view);
|
||||||
|
|
||||||
total = bgv_get_total_for_account (account, priv->budget, NULL);
|
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));
|
xaccSPrintAmount (amtbuff, total, gnc_account_print_info (account, TRUE));
|
||||||
|
|
||||||
if (priv->use_red_color && gnc_numeric_negative_p (total))
|
if (priv->use_red_color && gnc_numeric_negative_p (total))
|
||||||
|
Loading…
Reference in New Issue
Block a user