Don't override the previous state on all the transactions in the

reconciliation window. Only set those the user identified as
reconciled. #95639


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7536 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2002-11-24 07:23:19 +00:00
parent 3422380ce6
commit 9a2d29df7f
2 changed files with 13 additions and 9 deletions

View File

@@ -52,6 +52,11 @@
2002-11-23 David Hampton <hampton@employees.org>
* src/gnome/reconcile-list.c (gnc_reconcile_list_commit): Don't
override the previous state on all the transactions in the
reconciliation window. Only set those the user identified as
reconciled. #95639
* src/register/ledger-core/gnc-ledger-display.c (refresh_handler):
If there is a current split, then ensure that the transaction
containing that split stays in the register. This will make the

View File

@@ -722,7 +722,9 @@ gnc_reconcile_list_reconciled_balance (GNCReconcileList *list)
/********************************************************************\
* gnc_reconcile_list_commit *
* commit the reconcile information in the list *
* Commit the reconcile information in the list. only change the *
* state of those items marked as reconciled. All others should *
* retain their previous state (none, cleared, voided, etc.). *
* *
* Args: list - list to commit *
* date - date to set as the reconcile date *
@@ -744,18 +746,15 @@ gnc_reconcile_list_commit (GNCReconcileList *list, time_t date)
for (i = 0; i < list->num_splits; i++)
{
Transaction *trans;
char recn;
split = gtk_clist_get_row_data (clist, i);
if (!g_hash_table_lookup (list->reconciled, split))
continue;
trans = xaccSplitGetParent(split);
recn = g_hash_table_lookup (list->reconciled, split) ? YREC : NREC;
xaccTransBeginEdit(trans);
xaccSplitSetReconcile (split, recn);
if (recn == YREC) {
xaccSplitSetDateReconciledSecs (split, date);
}
xaccSplitSetReconcile (split, YREC);
xaccSplitSetDateReconciledSecs (split, date);
xaccTransCommitEdit(trans);
}
}