[PR #7868] [AI] Fix currency suffix amount imports #85134

Open
opened 2026-05-19 10:30:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7868
Author: @mturac
Created: 5/17/2026
Status: 🔄 Open

Base: masterHead: fix/5020-import-amount-currency-suffix


📝 Commits (1)

  • fca196c [AI] Fix currency suffix amount imports

📊 Changes

3 files changed (+18 additions, -2 deletions)

View changed files

📝 packages/loot-core/src/shared/util.test.ts (+4 -0)
📝 packages/loot-core/src/shared/util.ts (+8 -2)
upcoming-release-notes/7868.md (+6 -0)

📄 Description

Description

Fixes CSV import amount parsing when an amount has a one-decimal value followed by a trailing currency suffix, such as 3.4 €. The parser now validates decimal precision using the numeric fractional digits before the suffix instead of counting the suffix as part of the decimal tail.

Fixes #5020

Testing

  • yarn workspace @actual-app/core vitest --run src/shared/util.test.ts --testNamePattern looseParseAmount
  • yarn lint packages/loot-core/src/shared/util.ts packages/loot-core/src/shared/util.test.ts
  • git diff --check

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

🔄 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/7868 **Author:** [@mturac](https://github.com/mturac) **Created:** 5/17/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/5020-import-amount-currency-suffix` --- ### 📝 Commits (1) - [`fca196c`](https://github.com/actualbudget/actual/commit/fca196ccdf20a3fdefc6d090696a39e23b659e08) [AI] Fix currency suffix amount imports ### 📊 Changes **3 files changed** (+18 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/shared/util.test.ts` (+4 -0) 📝 `packages/loot-core/src/shared/util.ts` (+8 -2) ➕ `upcoming-release-notes/7868.md` (+6 -0) </details> ### 📄 Description ## Description Fixes CSV import amount parsing when an amount has a one-decimal value followed by a trailing currency suffix, such as `3.4 €`. The parser now validates decimal precision using the numeric fractional digits before the suffix instead of counting the suffix as part of the decimal tail. ## Related issue(s) Fixes #5020 ## Testing - `yarn workspace @actual-app/core vitest --run src/shared/util.test.ts --testNamePattern looseParseAmount` - `yarn lint packages/loot-core/src/shared/util.ts packages/loot-core/src/shared/util.test.ts` - `git diff --check` ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed --- <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-05-19 10:30: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#85134