Skip to content

Commit

Permalink
✨ allow un-reconciling (unlocking) transactions (actualbudget#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis authored Jan 22, 2024
1 parent da46f19 commit 04e9b03
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2252.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [MatissJanis]
---

Allow un-reconcile (unlock) transactions by clicking on the lock icon

0 comments on commit 04e9b03

Please sign in to comment.