r16714 - gnucash/trunk - Fix a fencepost error in the book closing code (#106383).

Derek Atkins warlord at cvs.gnucash.org
Sun Dec 23 23:48:49 EST 2007


Author: warlord
Date: 2007-12-23 23:48:49 -0500 (Sun, 23 Dec 2007)
New Revision: 16714
Trac: http://svn.gnucash.org/trac/changeset/16714

Modified:
   gnucash/trunk/
   gnucash/trunk/src/gnome-utils/dialog-book-close.c
Log:
Fix a fencepost error in the book closing code (#106383).
Add 12 hours to the close_date before asking for the BalanceAsOfDate()



Property changes on: gnucash/trunk
___________________________________________________________________
Name: svk:merge
   - 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/swig-redo:802
3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:1037
57a11ea4-9604-0410-9ed3-97b8803252fd:/gnucash/branches/gobject-engine-dev-warlord:15827
95e783b2-15b2-415a-8f58-462a736813e0:/gnucash/advport:27
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/gobject-engine-dev-warlord:14369
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/gobject-engine-dev-warlord1:14446
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:14601
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:15116
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk3:15353
   + 3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/branches/swig-redo:802
3889ce50-311e-0410-a464-f059747ec5d1:/local/gnucash/trunk:1037
57a11ea4-9604-0410-9ed3-97b8803252fd:/gnucash/branches/gobject-engine-dev-warlord:15827
95e783b2-15b2-415a-8f58-462a736813e0:/gnucash/advport:27
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/gobject-engine-dev-warlord:14369
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/branches/gobject-engine-dev-warlord1:14446
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk:14601
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk2:15116
d2ab10a8-8a95-4986-baff-8d511d9f15b2:/local/gnucash/trunk3:15356

Modified: gnucash/trunk/src/gnome-utils/dialog-book-close.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-book-close.c	2007-12-24 04:40:53 UTC (rev 16713)
+++ gnucash/trunk/src/gnome-utils/dialog-book-close.c	2007-12-24 04:48:49 UTC (rev 16714)
@@ -238,6 +238,7 @@
      break;
   case GTK_RESPONSE_OK:
     cbw->close_date = gnc_date_edit_get_date(GNC_DATE_EDIT(cbw->close_date_widget));
+    cbw->close_date += (3600 * 12);  /* Add 12 hours to the timestamp */
     cbw->desc = gtk_entry_get_text(GTK_ENTRY(cbw->desc_widget));
 
     income_acct = gnc_account_sel_get_account(GNC_ACCOUNT_SEL(cbw->income_acct_widget));



More information about the gnucash-changes mailing list