Set split to 'cleared' only if it was in 'not reconciled' beforehand.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7518 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2002-11-21 22:18:06 +00:00
parent 3d880f6399
commit be7835304b

View File

@ -606,7 +606,8 @@ on_matcher_apply_clicked (GtkButton *button,
{ {
/* Reconcile the matching transaction */ /* Reconcile the matching transaction */
xaccTransBeginEdit(transaction_info->selected_match_info->trans); xaccTransBeginEdit(transaction_info->selected_match_info->trans);
xaccSplitSetReconcile(transaction_info->selected_match_info->split,CREC); if (xaccSplitGetReconcile (transaction_info->selected_match_info->split) == NREC)
xaccSplitSetReconcile(transaction_info->selected_match_info->split,CREC);
/*Set reconcile date to today*/ /*Set reconcile date to today*/
xaccSplitSetDateReconciledSecs(transaction_info->selected_match_info->split,time(NULL)); xaccSplitSetDateReconciledSecs(transaction_info->selected_match_info->split,time(NULL));
/* Copy the online id to the reconciled transaction, so the match will be remembered */ /* Copy the online id to the reconciled transaction, so the match will be remembered */