[PR #5955] [MERGED] feat(currency): add currency support to templates and goals #32157

Closed
opened 2026-04-18 08:15:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5955
Author: @misu-dev
Created: 10/18/2025
Status: Merged
Merged: 11/8/2025
Merged by: @youngcw

Base: masterHead: feat/add-currency-to-templates-and-goals


📝 Commits (6)

  • a3509fd feat(currency): add currency support to templates and goals
  • fbe3246 fix: linting
  • f8d73ce fix: add weekly guard as per coderabbit suggestion
  • 77694e3 fix: add decimalPlaces to removeFraction
  • 3b02367 test: add tests for JPY
  • c970c94 simplify currency usage in template

📊 Changes

10 files changed (+352 additions, -70 deletions)

View changed files

📝 packages/desktop-client/src/components/budget/goals/editor/SimpleAutomation.tsx (+2 -5)
📝 packages/desktop-client/src/components/budget/goals/editor/SimpleAutomationReadOnly.tsx (+1 -5)
📝 packages/desktop-client/src/components/budget/goals/editor/WeekAutomation.tsx (+2 -5)
📝 packages/desktop-client/src/components/budget/goals/editor/WeekAutomationReadOnly.tsx (+1 -5)
📝 packages/desktop-client/src/components/settings/Currency.tsx (+1 -1)
📝 packages/loot-core/src/server/budget/category-template-context.test.ts (+271 -29)
📝 packages/loot-core/src/server/budget/category-template-context.ts (+65 -17)
📝 packages/loot-core/src/server/budget/goal-template.ts (+2 -2)
📝 packages/loot-core/src/shared/currencies.ts (+1 -1)
upcoming-release-notes/5955.md (+6 -0)

📄 Description

This adds currency support for templates and goals. Currencies with a number of decimal other than 2 are supported now.

JPY should be removed again before the merge, as transactions are not finished yet.


🔄 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/5955 **Author:** [@misu-dev](https://github.com/misu-dev) **Created:** 10/18/2025 **Status:** ✅ Merged **Merged:** 11/8/2025 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `feat/add-currency-to-templates-and-goals` --- ### 📝 Commits (6) - [`a3509fd`](https://github.com/actualbudget/actual/commit/a3509fddc114efff031f4ad4950c9af37e2889a8) feat(currency): add currency support to templates and goals - [`fbe3246`](https://github.com/actualbudget/actual/commit/fbe3246da19621eb01320a334fd0582260e63756) fix: linting - [`f8d73ce`](https://github.com/actualbudget/actual/commit/f8d73ce74ed8413a37d9ed39612b991b5b60a1fb) fix: add weekly guard as per coderabbit suggestion - [`77694e3`](https://github.com/actualbudget/actual/commit/77694e3bb9e82a319e8c394313dd8bfb384595ac) fix: add decimalPlaces to removeFraction - [`3b02367`](https://github.com/actualbudget/actual/commit/3b02367ef41bf80cc07299986018878bfc2e988d) test: add tests for JPY - [`c970c94`](https://github.com/actualbudget/actual/commit/c970c94e3ea99ac8f2a09748e56e401ada751b55) simplify currency usage in template ### 📊 Changes **10 files changed** (+352 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/budget/goals/editor/SimpleAutomation.tsx` (+2 -5) 📝 `packages/desktop-client/src/components/budget/goals/editor/SimpleAutomationReadOnly.tsx` (+1 -5) 📝 `packages/desktop-client/src/components/budget/goals/editor/WeekAutomation.tsx` (+2 -5) 📝 `packages/desktop-client/src/components/budget/goals/editor/WeekAutomationReadOnly.tsx` (+1 -5) 📝 `packages/desktop-client/src/components/settings/Currency.tsx` (+1 -1) 📝 `packages/loot-core/src/server/budget/category-template-context.test.ts` (+271 -29) 📝 `packages/loot-core/src/server/budget/category-template-context.ts` (+65 -17) 📝 `packages/loot-core/src/server/budget/goal-template.ts` (+2 -2) 📝 `packages/loot-core/src/shared/currencies.ts` (+1 -1) ➕ `upcoming-release-notes/5955.md` (+6 -0) </details> ### 📄 Description This adds currency support for templates and goals. Currencies with a number of decimal other than 2 are supported now. JPY should be removed again before the merge, as transactions are not finished yet. --- <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-04-18 08:15:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#32157