Bug 797084 - Provide an option to leave edited transactions reconciled

Instead of making this optional, changes to transaction fields in
case the transaction has reconciled splits will now only issue a
warning. If the user continues anyway with changes to the transaction
field the reconcile state of splits won't be affected.
Changing protected split fields will continue to unreconcile that split.
pull/675/head
Geert Janssens 6 years ago
parent 5b18405c8e
commit fdd4798555

@ -2194,9 +2194,8 @@ gnc_split_register_confirm (VirtualLocation virt_loc, gpointer user_data)
}
title = _("Change transaction containing a reconciled split?");
message_format =
_("The transaction you are about to change is protected because it contains reconciled splits in the following accounts:\n%s"
"\n\nIf you continue editing this transaction all reconciled splits will be unreconciled. "
"This might make future reconciliation difficult! Continue with this change?");
_("The transaction you are about to change is contains reconciled splits in the following accounts:\n%s"
"\n\nAre you sure you want to continue with this change ?");
message = g_strdup_printf (message_format, acc_list);
g_free (acc_list);
@ -2250,14 +2249,6 @@ gnc_split_register_confirm (VirtualLocation virt_loc, gpointer user_data)
}
}
if (protected_trans_cell)
{
if (reg->unrecn_splits != NULL)
g_list_free (reg->unrecn_splits);
reg->unrecn_splits = g_list_copy (xaccTransGetSplitList (trans));
}
PINFO ("Unreconcile split list length is %d", g_list_length(reg->unrecn_splits));
info->change_confirmed = TRUE;
}

Loading…
Cancel
Save