[PR #7867] [CLOSED] [AI] Reject decimal amounts in transaction imports #105149

Closed
opened 2026-05-30 07:27:35 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7867
Author: @mturac
Created: 5/17/2026
Status: Closed

Base: masterHead: fix/7812-import-amount-validation


📝 Commits (1)

  • bae4ad9 [AI] Reject decimal amounts in transaction imports

📊 Changes

3 files changed (+76 additions, -0 deletions)

View changed files

📝 packages/api/methods.test.ts (+27 -0)
📝 packages/loot-core/src/server/accounts/app.ts (+43 -0)
upcoming-release-notes/7867.md (+6 -0)

📄 Description

Fixes #7812.

Summary

  • validate imported transaction and subtransaction amounts before reconciliation
  • return import errors for decimal, non-finite amounts instead of reporting them as added
  • add API coverage to ensure invalid decimal amounts do not persist

Testing

  • yarn workspace @actual-app/api test methods.test.ts -t 'import rejects decimal amount values'
  • git diff --check origin/master...HEAD

🔄 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/7867 **Author:** [@mturac](https://github.com/mturac) **Created:** 5/17/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/7812-import-amount-validation` --- ### 📝 Commits (1) - [`bae4ad9`](https://github.com/actualbudget/actual/commit/bae4ad95bdfc264cdf6a3e0e624e7ed2f7aff74e) [AI] Reject decimal amounts in transaction imports ### 📊 Changes **3 files changed** (+76 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/api/methods.test.ts` (+27 -0) 📝 `packages/loot-core/src/server/accounts/app.ts` (+43 -0) ➕ `upcoming-release-notes/7867.md` (+6 -0) </details> ### 📄 Description Fixes #7812. ## Summary - validate imported transaction and subtransaction amounts before reconciliation - return import errors for decimal, non-finite amounts instead of reporting them as added - add API coverage to ensure invalid decimal amounts do not persist ## Testing - yarn workspace @actual-app/api test methods.test.ts -t 'import rejects decimal amount values' - git diff --check origin/master...HEAD --- <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-30 07:27:35 -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#105149