Bug #475960: Reverse postponed reconciliation balances in suitable accounts.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17059 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2008-03-29 13:38:01 +00:00
parent 733d0dfe70
commit 1abe022d06
+4 -2
View File
@@ -1328,8 +1328,10 @@ gnc_get_reconcile_info (Account *account,
xaccAccountGetReconcilePostponeDate (account, statement_date);
if( !xaccAccountGetReconcilePostponeBalance (account, new_ending) )
{
if (xaccAccountGetReconcilePostponeBalance(account, new_ending)) {
if (gnc_reverse_balance(account))
*new_ending = gnc_numeric_neg(*new_ending);
} else {
/* if the account wasn't previously postponed, try to predict
* the statement balance based on the statement date.
*/