r20225 - gnucash/trunk/src/business/business-gnome - Do not modify the entry's DateEntered when duplicating invoice to keep the entry ordering.

Christian Stimming cstim at code.gnucash.org
Wed Feb 2 15:49:42 EST 2011


Author: cstim
Date: 2011-02-02 15:49:41 -0500 (Wed, 02 Feb 2011)
New Revision: 20225
Trac: http://svn.gnucash.org/trac/changeset/20225

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
Do not modify the entry's DateEntered when duplicating invoice to keep the entry ordering.

Follow-up to r20115.

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2011-02-02 20:31:10 UTC (rev 20224)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2011-02-02 20:49:41 UTC (rev 20225)
@@ -2303,7 +2303,9 @@
     //g_warning("Modifying date for entry with desc=\"%s\"", gncEntryGetDescription(entry));
 
     gncEntrySetDate(entry, *new_date);
-    gncEntrySetDateEntered(entry, *new_date);
+    /*gncEntrySetDateEntered(entry, *new_date); - don't modify this
+     * because apparently it implies the ordering of the entries,
+     * which we don't want to change. */
 }
 
 



More information about the gnucash-changes mailing list