From 83d2472a550b192ed233ab91ce2c529cb87a08a9 Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Sat, 6 Jan 2024 16:14:00 +0100 Subject: [PATCH] Ask for confirmation when editing date of a locked transaction (#2134) * Ask for confirmation when editing date of a locked transaction * Add release note --- packages/desktop-client/src/components/accounts/Account.jsx | 2 +- .../src/components/transactions/TransactionsTable.jsx | 3 ++- upcoming-release-notes/2134.md | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 upcoming-release-notes/2134.md diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index 37871916290..f9fcda5d5ef 100644 --- a/packages/desktop-client/src/components/accounts/Account.jsx +++ b/packages/desktop-client/src/components/accounts/Account.jsx @@ -864,7 +864,7 @@ class AccountInternal extends PureComponent { } }; - if (name === 'amount' || name === 'payee' || name === 'account') { + if (name === 'amount' || name === 'payee' || name === 'account' || name === 'date') { const { data } = await runQuery( q('transactions') .filter({ id: { $oneof: ids }, reconciled: true }) diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx index a1009c1aaca..d97d77dbd38 100644 --- a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx @@ -754,7 +754,8 @@ const Transaction = memo(function Transaction(props) { (name === 'credit' || name === 'debit' || name === 'payee' || - name === 'account') + name === 'account' || + name === 'date') ) { if (showReconciliationWarning === false) { setShowReconciliationWarning(true); diff --git a/upcoming-release-notes/2134.md b/upcoming-release-notes/2134.md new file mode 100644 index 00000000000..de428dbadd1 --- /dev/null +++ b/upcoming-release-notes/2134.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [Jackenmen] +--- + +Ask for confirmation when editing date of a locked transaction