[PR #5288] [MERGED] [Goals] Round template amounts if hide decimals is set #20223

Closed
opened 2026-04-14 21:31:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5288
Author: @youngcw
Created: 7/4/2025
Status: Merged
Merged: 7/8/2025
Merged by: @youngcw

Base: masterHead: youngcw/templates-nodecimal


📝 Commits (5)

📊 Changes

3 files changed (+104 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/budget/category-template-context.test.ts (+76 -0)
📝 packages/loot-core/src/server/budget/category-template-context.ts (+22 -1)
upcoming-release-notes/5288.md (+6 -0)

📄 Description

In the case of currencies where there are no decimal places, templates may still try to budget factional amounts in a category. This blocks that from happening if the hide decimal setting is enabled. All templates will round away fractional amounts if the processing returns it.

fixes #3846


🔄 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/5288 **Author:** [@youngcw](https://github.com/youngcw) **Created:** 7/4/2025 **Status:** ✅ Merged **Merged:** 7/8/2025 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `youngcw/templates-nodecimal` --- ### 📝 Commits (5) - [`b6fe9bc`](https://github.com/actualbudget/actual/commit/b6fe9bcf90c21ba1c4e0a1a6866dfb141f3c1c35) round amounts - [`86e0797`](https://github.com/actualbudget/actual/commit/86e0797ec7428097edeff2685e652ccfb159ff61) cleanup, handle not pref set - [`02b06b6`](https://github.com/actualbudget/actual/commit/02b06b68c68d8b33054fdd1cc2240fb04f47b592) move comment - [`47e6840`](https://github.com/actualbudget/actual/commit/47e684060b8a8c7d881a7ee055086c2c54a75287) fix test - [`bf87690`](https://github.com/actualbudget/actual/commit/bf876907b19cfaebcc2ead537ab01ec71d9fbefb) bunny, add a test ### 📊 Changes **3 files changed** (+104 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/budget/category-template-context.test.ts` (+76 -0) 📝 `packages/loot-core/src/server/budget/category-template-context.ts` (+22 -1) ➕ `upcoming-release-notes/5288.md` (+6 -0) </details> ### 📄 Description In the case of currencies where there are no decimal places, templates may still try to budget factional amounts in a category. This blocks that from happening if the hide decimal setting is enabled. All templates will round away fractional amounts if the processing returns it. fixes #3846 --- <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-14 21:31:19 -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#20223