Fix a fencepost error in the book closing code (#106383).

Add 12 hours to the close_date before asking for the BalanceAsOfDate()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16714 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2007-12-24 04:48:49 +00:00
parent 8ca76d3635
commit fe28cceea7

View File

@ -238,6 +238,7 @@ gnc_book_close_response_cb(GtkDialog *dialog, gint response, GtkDialog *unused)
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));