Skip to content

Commit

Permalink
Ask for confirmation when editing date of a locked transaction (#2134)
Browse files Browse the repository at this point in the history
* Ask for confirmation when editing date of a locked transaction

* Add release note
  • Loading branch information
Jackenmen authored Jan 6, 2024
1 parent 458d556 commit 83d2472
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2134.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [Jackenmen]
---

Ask for confirmation when editing date of a locked transaction

0 comments on commit 83d2472

Please sign in to comment.