r17133 - gnucash/branches/2.2/src/gnome - [r17059] Bug #475960: Reverse postponed reconciliation balances in suitable accounts.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Apr 26 12:49:37 EDT 2008


Author: andi5
Date: 2008-04-26 12:49:37 -0400 (Sat, 26 Apr 2008)
New Revision: 17133
Trac: http://svn.gnucash.org/trac/changeset/17133

Modified:
   gnucash/branches/2.2/src/gnome/window-reconcile.c
Log:
[r17059] Bug #475960: Reverse postponed reconciliation balances in suitable accounts.


Modified: gnucash/branches/2.2/src/gnome/window-reconcile.c
===================================================================
--- gnucash/branches/2.2/src/gnome/window-reconcile.c	2008-04-26 16:49:28 UTC (rev 17132)
+++ gnucash/branches/2.2/src/gnome/window-reconcile.c	2008-04-26 16:49:37 UTC (rev 17133)
@@ -1324,8 +1324,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