mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug#340197: reverse account opening balances when desired.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13889 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a0bbda961f
commit
2220646d16
@ -1,3 +1,11 @@
|
||||
2006-04-30 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
Bug#340197: reverse account opening balances when desired.
|
||||
* src/gnome/druid-hierarchy.c (balance_cell_data_func): Don't
|
||||
invert balances here. Leads to strange behavior.
|
||||
* src/gnome/druid-hierarchy.c (starting_balance_helper): Reverse
|
||||
balance if needed by the account.
|
||||
|
||||
2006-04-30 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/app-utils/gnc-ui-util.c: Fix retrieval of reconcile
|
||||
|
@ -691,9 +691,6 @@ balance_cell_data_func (GtkTreeViewColumn *tree_column,
|
||||
account = gnc_tree_view_account_get_account_from_iter (model, iter);
|
||||
|
||||
balance = get_final_balance (data->balance_hash, account);
|
||||
if (gnc_reverse_balance (account))
|
||||
balance = gnc_numeric_neg (balance);
|
||||
|
||||
if (gnc_numeric_zero_p (balance)) {
|
||||
string = "";
|
||||
} else {
|
||||
@ -958,6 +955,8 @@ starting_balance_helper (Account *account, hierarchy_data *data)
|
||||
gnc_numeric balance;
|
||||
|
||||
balance = get_final_balance (data->balance_hash, account);
|
||||
if (gnc_reverse_balance(account))
|
||||
balance = gnc_numeric_neg(balance);
|
||||
if (!gnc_numeric_zero_p (balance))
|
||||
gnc_account_create_opening_balance (account, balance, time (NULL),
|
||||
gnc_get_current_book ());
|
||||
|
Loading…
Reference in New Issue
Block a user