From 1abe022d06a2f2cea23f72337f47987eeb513f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sat, 29 Mar 2008 13:38:01 +0000 Subject: [PATCH] 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 --- src/gnome/window-reconcile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index 21d00d7f86..2fc72184cd 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -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. */