diff --git a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx index 15cd79a23133cbe9bcdebbc91607df37f15e8b0d..daacc77931a44bfaef8b28ff74d51eb13f619e17 100644 --- a/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx +++ b/packages/desktop-client/src/components/modals/ConfirmTransactionEdit.tsx @@ -42,6 +42,12 @@ export function ConfirmTransactionEdit({ Saving your changes to this reconciled transaction may bring your reconciliation out of balance. </Block> + ) : confirmReason === 'unlockReconciled' ? ( + <Block> + Unlocking this transaction means you won‘t be warned about changes + that can impact your reconciled balance. (Changes to amount, + account, payee, etc). + </Block> ) : confirmReason === 'deleteReconciled' ? ( <Block> Deleting this reconciled transaction may bring your reconciliation diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx index 2e3291b86a296e5b8a5fa9af9224978acc44fb1c..69e53337c4ca43c013897a050fdcb2ad1c5d3a2e 100644 --- a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx @@ -773,6 +773,16 @@ const Transaction = memo(function Transaction(props) { onUpdateAfterConfirm(name, value); } } + + // Allow un-reconciling (unlocking) transactions + if (name === 'cleared' && transaction.reconciled) { + props.pushModal('confirm-transaction-edit', { + onConfirm: () => { + onUpdateAfterConfirm('reconciled', false); + }, + confirmReason: 'unlockReconciled', + }); + } } function onUpdateAfterConfirm(name, value) { diff --git a/upcoming-release-notes/2252.md b/upcoming-release-notes/2252.md new file mode 100644 index 0000000000000000000000000000000000000000..55ae4bea2bc867bc6c0ccbad6344a1c99600c068 --- /dev/null +++ b/upcoming-release-notes/2252.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [MatissJanis] +--- + +Allow un-reconcile (unlock) transactions by clicking on the lock icon