r16085 - gnucash/branches/2.0 - Changing the transaction number can affect the split sort order and

Derek Atkins warlord at cvs.gnucash.org
Mon May 14 10:38:24 EDT 2007


Author: warlord
Date: 2007-05-14 10:38:23 -0400 (Mon, 14 May 2007)
New Revision: 16085
Trac: http://svn.gnucash.org/trac/changeset/16085

Modified:
   gnucash/branches/2.0/
   gnucash/branches/2.0/ChangeLog
   gnucash/branches/2.0/src/engine/Transaction.c
Log:
Changing the transaction number can affect the split sort order and
thus the running account balances.  Fixes #386074.

Merge from r15989



Property changes on: gnucash/branches/2.0
___________________________________________________________________
Name: svk:merge
   - 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:14723
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282
   + 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/2.0:697
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/2.0:14724
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:13282

Modified: gnucash/branches/2.0/ChangeLog
===================================================================
--- gnucash/branches/2.0/ChangeLog	2007-05-14 14:38:12 UTC (rev 16084)
+++ gnucash/branches/2.0/ChangeLog	2007-05-14 14:38:23 UTC (rev 16085)
@@ -9,6 +9,9 @@
 	* Remember the current session when an option dialog boxes is opened,
 	  and close it when the session is closed.  Fixes #394074.
 
+	* Changing the transaction number can affect the split sort order and
+	  thus the running account balances.  Fixes #386074.
+ 
 2007-04-21  David Hampton  <hampton at employees.org>
 
 	* Disable the close callback while updating reports.  Fixes #416986.

Modified: gnucash/branches/2.0/src/engine/Transaction.c
===================================================================
--- gnucash/branches/2.0/src/engine/Transaction.c	2007-05-14 14:38:12 UTC (rev 16084)
+++ gnucash/branches/2.0/src/engine/Transaction.c	2007-05-14 14:38:23 UTC (rev 16085)
@@ -1405,6 +1405,7 @@
 
    CACHE_REPLACE(trans->num, xnum);
    qof_instance_set_dirty(QOF_INSTANCE(trans));
+   mark_trans(trans);  /* Dirty balance of every account in trans */
    xaccTransCommitEdit(trans);
 }
 



More information about the gnucash-changes mailing list