[Gnucash-changes] r14297 - gnucash/trunk - Limit the reconciliation
date to the past or today, never the future.
David Hampton
hampton at cvs.gnucash.org
Fri Jun 2 17:02:45 EDT 2006
Author: hampton
Date: 2006-06-02 17:02:43 -0400 (Fri, 02 Jun 2006)
New Revision: 14297
Trac: http://svn.gnucash.org/trac/changeset/14297
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome/window-reconcile.c
Log:
Limit the reconciliation date to the past or today, never the future.
Fixes #343527.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-06-02 01:50:02 UTC (rev 14296)
+++ gnucash/trunk/ChangeLog 2006-06-02 21:02:43 UTC (rev 14297)
@@ -1,3 +1,8 @@
+2006-06-02 David Hampton <hampton at employees.org>
+
+ * src/gnome/window-reconcile.c: Limit the reconciliation date to
+ the past or today, never the future. Fixes #343527.
+
2006-06-01 Derek Atkins <derek at ihtfp.com>
* configure.in: Don't need to patch libtool for darwin anymore.
Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c 2006-06-02 01:50:02 UTC (rev 14296)
+++ gnucash/trunk/src/gnome/window-reconcile.c 2006-06-02 21:02:43 UTC (rev 14297)
@@ -1284,6 +1284,7 @@
gnc_numeric *new_ending,
time_t *statement_date)
{
+ time_t today;
struct tm tm;
if (xaccAccountGetReconcileLastDate (account, statement_date))
@@ -1309,6 +1310,10 @@
tm.tm_isdst = -1;
gnc_tm_set_day_end (&tm);
*statement_date = mktime (&tm);
+
+ today = gnc_timet_get_day_end(time(NULL));
+ if (*statement_date > today)
+ *statement_date = today;
}
xaccAccountGetReconcilePostponeDate (account, statement_date);
More information about the gnucash-changes
mailing list