AUDIT: r17059 - gnucash/trunk/src/gnome - Bug #475960: Reverse postponed reconciliation balances in suitable accounts.
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Mar 29 09:38:01 EDT 2008
Author: andi5
Date: 2008-03-29 09:38:01 -0400 (Sat, 29 Mar 2008)
New Revision: 17059
Trac: http://svn.gnucash.org/trac/changeset/17059
Modified:
gnucash/trunk/src/gnome/window-reconcile.c
Log:
Bug #475960: Reverse postponed reconciliation balances in suitable accounts.
BP
Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c 2008-03-29 01:20:01 UTC (rev 17058)
+++ gnucash/trunk/src/gnome/window-reconcile.c 2008-03-29 13:38:01 UTC (rev 17059)
@@ -1328,8 +1328,10 @@
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.
*/
More information about the gnucash-changes
mailing list