allow un-reconciling (unlocking) transactions (#2252)

This commit is contained in:
Matiss Janis Aboltins
2024-01-22 08:34:40 +00:00
committed by GitHub
parent bb0ae4ebc3
commit a6e38ad2ae
3 changed files with 22 additions and 0 deletions

View File

@@ -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 wont 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

View File

@@ -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) {

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [MatissJanis]
---
Allow un-reconcile (unlock) transactions by clicking on the lock icon