[PR #2151] [MERGED] Add split distribution #4147

Closed
opened 2026-02-28 20:52:12 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2151
Author: @NikxDa
Created: 1/1/2024
Status: Merged
Merged: 1/13/2024
Merged by: @joel-jeremy

Base: masterHead: feature/distribute-splits


📝 Commits (9)

  • 33f3781 Add split distribution feature
  • 462f754 Add upcoming release notes
  • b0f3851 Fix tests
  • e072e69 Fix remaining test
  • c190258 Merge branch 'master' into feature/distribute-splits
  • 83df510 Disable distribute button when all transactions are filled
  • 0efc08e Merge branch 'master' into feature/distribute-splits
  • e83d5fe Add canDistributeRemainder
  • 84e8422 Merge branch 'master' into feature/distribute-splits

📊 Changes

3 files changed (+98 additions, -9 deletions)

View changed files

📝 packages/desktop-client/src/components/transactions/TransactionsTable.jsx (+88 -6)
📝 packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx (+4 -3)
upcoming-release-notes/2151.md (+6 -0)

📄 Description

This PR adds support for distributing the remaining balance of a split over all empty splits. This feature was suggested in #1324 and partially implemented in #1271 but never merged.

Examples:

  • A transaction has an amount of $200, and three splits each with no amount. Clicking "Distribute" will assign $66.66 to the first two, and $66.67 to the third split, automatically.
  • A transaction has an amount of $200, and three splits, two of which have no amount. The third split has an amount of $10. Clicking "Distribute" will assign $95 to the two empty splits.

Demo:

CleanShot 2024-01-01 at 17 01 55

As far as I can tell, this is now ready to merge and includes the functionality for both the new transaction editor as well as in existing transactions.


🔄 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/2151 **Author:** [@NikxDa](https://github.com/NikxDa) **Created:** 1/1/2024 **Status:** ✅ Merged **Merged:** 1/13/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `feature/distribute-splits` --- ### 📝 Commits (9) - [`33f3781`](https://github.com/actualbudget/actual/commit/33f378106088923caead91f73be2f5fdeef3d782) Add split distribution feature - [`462f754`](https://github.com/actualbudget/actual/commit/462f7542b22942728235ee5ff20ae2a9d48d5aed) Add upcoming release notes - [`b0f3851`](https://github.com/actualbudget/actual/commit/b0f3851f69e9b216879a3717984ea2c6dcae5a8b) Fix tests - [`e072e69`](https://github.com/actualbudget/actual/commit/e072e69407596ac945b222ebefe409db5cb5174a) Fix remaining test - [`c190258`](https://github.com/actualbudget/actual/commit/c19025868dc07009cdb136c78a9619cffe309aee) Merge branch 'master' into feature/distribute-splits - [`83df510`](https://github.com/actualbudget/actual/commit/83df510954dcdff5320d7618ccedaf684398c813) Disable distribute button when all transactions are filled - [`0efc08e`](https://github.com/actualbudget/actual/commit/0efc08e54b3a29e86892db222c3ce4c6ba16ca0c) Merge branch 'master' into feature/distribute-splits - [`e83d5fe`](https://github.com/actualbudget/actual/commit/e83d5fe561c3769f567fa7a269391e8aba174f1a) Add canDistributeRemainder - [`84e8422`](https://github.com/actualbudget/actual/commit/84e8422f7b50a7f998823655e4b476c450351ce0) Merge branch 'master' into feature/distribute-splits ### 📊 Changes **3 files changed** (+98 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.jsx` (+88 -6) 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.test.jsx` (+4 -3) ➕ `upcoming-release-notes/2151.md` (+6 -0) </details> ### 📄 Description This PR adds support for distributing the remaining balance of a split over all empty splits. This feature was suggested in #1324 and partially implemented in #1271 but never merged. **Examples:** - A transaction has an amount of $200, and three splits each with no amount. Clicking "Distribute" will assign $66.66 to the first two, and $66.67 to the third split, automatically. - A transaction has an amount of $200, and three splits, two of which have no amount. The third split has an amount of $10. Clicking "Distribute" will assign $95 to the two empty splits. **Demo:** ![CleanShot 2024-01-01 at 17 01 55](https://github.com/actualbudget/actual/assets/3141005/6415632d-cee9-4bd4-950c-278a565c2017) As far as I can tell, this is now ready to merge and includes the functionality for both the new transaction editor as well as in existing transactions. --- <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 20:52:12 -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#4147