mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
8ca76d3635
commit
fe28cceea7
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user