[PR #7110] [CLOSED] [WIP] Fix JPY and KRW formatting and note default decimalPlaces value #32871

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7110
Author: @jintakhan
Created: 3/3/2026
Status: Closed

Base: masterHead: currency-decimal-fix


📝 Commits (5)

  • 3b5941c Add decimalPlaces=2 note and fix JPY and KRW formatting
  • d29ddb4 Add release notes
  • 73ea770 Add release notes
  • 1ffb824 Add release notes
  • 06d3acc [autofix.ci] apply automated fixes

📊 Changes

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

View changed files

📝 packages/loot-core/src/shared/currencies.ts (+3 -2)
upcoming-release-notes/7110.md (+6 -0)

📄 Description

Description

Actual relies on a default decimalPlaces value of 2. But in the context of currencies, the variable can be confusing, as even non-decimal currencies should be decimalPlaces=2 and users will see unexpected behaviors otherwise. This explicitly warns of the default decimalPlaces value in currencies.ts and fixes currencies displaying incorrectly by setting decimalPlaces to 2.

None

Testing

  1. Add transaction to a non-currency budget sheet
  2. Enable currency support
  3. Set to any currency besides JPY and KRW
  4. Observe the value has not changed
  5. Set to JPY or KRW
  6. Values appear to multiply by 100

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 27 14.85 MB 0%
loot-core 1 5.82 MB 0%
api 1 4.43 MB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.85 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 9.54 MB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/ca.js 188.11 kB 0%
static/js/da.js 106.35 kB 0%
static/js/de.js 180.07 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 170.33 kB 0%
static/js/es.js 174.55 kB 0%
static/js/fr.js 179.6 kB 0%
static/js/it.js 171.16 kB 0%
static/js/nb-NO.js 156.96 kB 0%
static/js/nl.js 106.37 kB 0%
static/js/pl.js 88.37 kB 0%
static/js/pt-BR.js 154.22 kB 0%
static/js/th.js 181.87 kB 0%
static/js/uk.js 214.74 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/ReportRouter.js 1.16 MB 0%
static/js/narrow.js 637.77 kB 0%
static/js/TransactionList.js 106.22 kB 0%
static/js/wide.js 164.15 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 10.04 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.82 MB 0%
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.CD4jS4pZ.js 0 B → 5.82 MB (+5.82 MB) -

Removed

Asset File Size % Changed
kcab.worker.C2vnwNMt.js 5.82 MB → 0 B (-5.82 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
1 4.43 MB 0%
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
bundle.api.js 4.43 MB 0%

🔄 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/7110 **Author:** [@jintakhan](https://github.com/jintakhan) **Created:** 3/3/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `currency-decimal-fix` --- ### 📝 Commits (5) - [`3b5941c`](https://github.com/actualbudget/actual/commit/3b5941c978b809b8e689eb3fd7994271664fc55b) Add decimalPlaces=2 note and fix JPY and KRW formatting - [`d29ddb4`](https://github.com/actualbudget/actual/commit/d29ddb48f305b00ff1cd4b37e76781eda8225542) Add release notes - [`73ea770`](https://github.com/actualbudget/actual/commit/73ea7708892bc561d5b1aafc25f377a00678eeb3) Add release notes - [`1ffb824`](https://github.com/actualbudget/actual/commit/1ffb8242d0e492ccdae89a810f98957bab524651) Add release notes - [`06d3acc`](https://github.com/actualbudget/actual/commit/06d3acc733f515cc4b30615066b2043f77946163) [autofix.ci] apply automated fixes ### 📊 Changes **2 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/shared/currencies.ts` (+3 -2) ➕ `upcoming-release-notes/7110.md` (+6 -0) </details> ### 📄 Description ## Description Actual relies on a default decimalPlaces value of 2. But in the context of currencies, the variable can be confusing, as even non-decimal currencies should be decimalPlaces=2 and users will see unexpected behaviors otherwise. This explicitly warns of the default decimalPlaces value in currencies.ts and fixes currencies displaying incorrectly by setting decimalPlaces to 2. ## Related issue(s) None ## Testing 1. Add transaction to a non-currency budget sheet 2. Enable currency support 3. Set to any currency besides JPY and KRW 4. Observe the value has not changed 5. Set to JPY or KRW 6. Values appear to multiply by 100 ## Checklist - [ ] Release notes added (see link above) - [ ] No obvious regressions in affected areas - [ ] Self-review has been performed - I understand what each change in the code does and why it is needed <!--- actual-bot-sections ---> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 27 | 14.85 MB | 0% loot-core | 1 | 5.82 MB | 0% api | 1 | 4.43 MB | 0% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.85 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.54 MB | 0% static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/ca.js | 188.11 kB | 0% static/js/da.js | 106.35 kB | 0% static/js/de.js | 180.07 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 170.33 kB | 0% static/js/es.js | 174.55 kB | 0% static/js/fr.js | 179.6 kB | 0% static/js/it.js | 171.16 kB | 0% static/js/nb-NO.js | 156.96 kB | 0% static/js/nl.js | 106.37 kB | 0% static/js/pl.js | 88.37 kB | 0% static/js/pt-BR.js | 154.22 kB | 0% static/js/th.js | 181.87 kB | 0% static/js/uk.js | 214.74 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/ReportRouter.js | 1.16 MB | 0% static/js/narrow.js | 637.77 kB | 0% static/js/TransactionList.js | 106.22 kB | 0% static/js/wide.js | 164.15 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 10.04 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.82 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.CD4jS4pZ.js | 0 B → 5.82 MB (+5.82 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.C2vnwNMt.js | 5.82 MB → 0 B (-5.82 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.43 MB | 0% <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- bundle.api.js | 4.43 MB | 0% </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <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:50:29 -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#32871