[PR #2421] [MERGED] Fix ofx amount parsing for longer decimal places #18659

Closed
opened 2026-04-14 20:49:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2421
Author: @keriati
Created: 3/4/2024
Status: Merged
Merged: 3/6/2024
Merged by: @youngcw

Base: masterHead: master


📝 Commits (1)

  • b380f5d fix ofx amount parsing for longer decimal places

📊 Changes

4 files changed (+83 additions, -1 deletions)

View changed files

packages/loot-core/src/mocks/files/data-multi-decimal.ofx (+64 -0)
📝 packages/loot-core/src/server/accounts/parse-file.test.ts (+12 -0)
📝 packages/loot-core/src/server/accounts/parse-file.ts (+1 -1)
upcoming-release-notes/2421.md (+6 -0)

📄 Description

Fixes #2418

This PR enhances the parseOFX function so it returns a number for amounts. This makes the rest of the app skip any additional number parsing attempts.

After this fix OFX imports should work again correctly when in the OFX file instead of 2 decimal places some other number of decimals are provided.


🔄 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/2421 **Author:** [@keriati](https://github.com/keriati) **Created:** 3/4/2024 **Status:** ✅ Merged **Merged:** 3/6/2024 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`b380f5d`](https://github.com/actualbudget/actual/commit/b380f5df4f9f2d206757230df246062c8cd7b86f) fix ofx amount parsing for longer decimal places ### 📊 Changes **4 files changed** (+83 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `packages/loot-core/src/mocks/files/data-multi-decimal.ofx` (+64 -0) 📝 `packages/loot-core/src/server/accounts/parse-file.test.ts` (+12 -0) 📝 `packages/loot-core/src/server/accounts/parse-file.ts` (+1 -1) ➕ `upcoming-release-notes/2421.md` (+6 -0) </details> ### 📄 Description Fixes #2418 This PR enhances the ```parseOFX``` function so it returns a ```number``` for amounts. This makes the rest of the app skip any additional number parsing attempts. After this fix OFX imports should work again correctly when in the OFX file instead of 2 decimal places some other number of decimals are provided. --- <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 20:49:11 -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#18659