mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-10 23:54:00 -05:00
[PR #4994] [MERGED] Add runningBalances to usePreviewTransactions and an option to set the starting balance to start running balance calculation from
#5695
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/actualbudget/actual/pull/4994
Author: @joel-jeremy
Created: 5/15/2025
Status: ✅ Merged
Merged: 5/15/2025
Merged by: @joel-jeremy
Base:
master← Head:usePreviewTransactions-runningBalances📝 Commits (2)
7b18655Add runningBalances to usePreviewTransactions and an option to set the starting balance to start running balance calculation from2d56a9aAdd filter to usePreviewTransactions and set startingBalance to account and category preview transaction hooks📊 Changes
11 files changed (+300 additions, -104 deletions)
View changed files
📝
packages/desktop-client/src/components/accounts/Reconcile.tsx(+1 -1)📝
packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx(+4 -4)📝
packages/desktop-client/src/components/mobile/accounts/Accounts.tsx(+10 -4)📝
packages/desktop-client/src/components/mobile/budget/CategoryTransactions.tsx(+3 -3)📝
packages/desktop-client/src/components/sidebar/Accounts.tsx(+3 -3)📝
packages/desktop-client/src/hooks/useAccountPreviewTransactions.ts(+92 -25)📝
packages/desktop-client/src/hooks/useCategoryPreviewTransactions.ts(+69 -15)📝
packages/desktop-client/src/hooks/useCategoryScheduleGoalTemplates.ts(+16 -6)📝
packages/loot-core/src/client/data-hooks/transactions.ts(+75 -25)📝
packages/loot-core/src/client/queries.ts(+21 -18)➕
upcoming-release-notes/4994.md(+6 -0)📄 Description
How to use:
useAccountPreviewTransactionsanduseCategoryPreviewTransactionshave also been updated to use account balance and category balance asstartingBalancerespectively.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.