Don't un-clear transactions improperly when postponing reconciliation (#497517)

Patch by Jeff Green and Mark Jenkins
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16726 57a11ea4-9604-0410-9ed3-97b8803252fd
2.4
Derek Atkins 19 years ago
parent fec3d53296
commit 3759d41f96

@ -138,6 +138,7 @@ gnc_reconcile_list_new(Account *account, GNCReconcileListType type,
list->account = account;
list->list_type = type;
list->statement_date = statement_date;
query = xaccMallocQuery();
xaccQuerySetBook(query, gnc_get_current_book ());
@ -577,9 +578,16 @@ gnc_reconcile_list_postpone (GNCReconcileList *list)
split = gtk_clist_get_row_data (clist, i);
recn = g_hash_table_lookup (list->reconciled, split) ? CREC : NREC;
// Don't change splits past reconciliation date that haven't been
// set to be reconciled
if ( difftime(list->statement_date,
xaccTransGetDate(xaccSplitGetParent(split))) >= 0 ||
g_hash_table_lookup(list->reconciled, split))
{
recn = g_hash_table_lookup (list->reconciled, split) ? CREC : NREC;
xaccSplitSetReconcile (split, recn);
xaccSplitSetReconcile (split, recn);
}
}
gnc_resume_gui_refresh();
}

@ -49,6 +49,8 @@ struct GNCReconcileList {
Account *account;
GList *column_list;
time_t statement_date;
GNCReconcileList *sibling;
GNCReconcileListType list_type;
gboolean no_toggle;

Loading…
Cancel
Save