[PR #5431] [CLOSED] [WIP] Disallow the updating of transactions in a closed account which changes its balance #5931

Closed
opened 2026-02-28 21:21:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5431
Author: @Serializator
Created: 7/31/2025
Status: Closed

Base: masterHead: disallow-balance-changes-closed-account-5413


📝 Commits (3)

  • b691666 disallow creating, updating the amount or deleting transactions on a closed account in the API
  • 71a91a7 close account only after balance is transferred
  • 940f0d4 [autofix.ci] apply automated fixes

📊 Changes

2 files changed (+33 additions, -9 deletions)

View changed files

📝 packages/loot-core/src/server/accounts/app.ts (+2 -2)
📝 packages/loot-core/src/server/transactions/index.ts (+31 -7)

📄 Description

This PR disallows the updating of transactions in closed accounts in ways it would affect its balance.

The changes are two-part. There is the enforcement on the API level to ensure this can't happen. Then there is the UI / UX to prevent the end-user from updating "attributes" of a transaction which may affect the balance of the account.

Currently I'm working under the assumption the primary ways this may happen is by updating the amount of a transaction or even updating the account which a transaction belongs to.


Fixes #5413


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5431 **Author:** [@Serializator](https://github.com/Serializator) **Created:** 7/31/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `disallow-balance-changes-closed-account-5413` --- ### 📝 Commits (3) - [`b691666`](https://github.com/actualbudget/actual/commit/b691666a7d371879e66e39f56eb2d3a784738238) disallow creating, updating the amount or deleting transactions on a closed account in the API - [`71a91a7`](https://github.com/actualbudget/actual/commit/71a91a758c7796beed73eb2767bbdf8135fb2c8b) close account only after balance is transferred - [`940f0d4`](https://github.com/actualbudget/actual/commit/940f0d45c00c82a12407822f451c5e85e70cea17) [autofix.ci] apply automated fixes ### 📊 Changes **2 files changed** (+33 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/accounts/app.ts` (+2 -2) 📝 `packages/loot-core/src/server/transactions/index.ts` (+31 -7) </details> ### 📄 Description This PR disallows the updating of transactions in closed accounts in ways it would affect its balance. The changes are two-part. There is the enforcement on the API level to ensure this can't happen. Then there is the UI / UX to prevent the end-user from updating "attributes" of a transaction which may affect the balance of the account. Currently I'm working under the assumption the primary ways this may happen is by updating the amount of a transaction or even updating the account which a transaction belongs to. --- Fixes #5413 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:21:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#5931