[PR #808] [MERGED] transaction-import: treat (amount) as -amount #3343

Closed
opened 2026-02-28 20:40:12 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/808
Author: @aharbis
Created: 3/23/2023
Status: Merged
Merged: 3/24/2023
Merged by: @MatissJanis

Base: masterHead: issue-807


📝 Commits (2)

  • 659cf5f transaction-import: treat (amount) as -amount
  • 768b16c add release notes

📊 Changes

3 files changed (+23 additions, -4 deletions)

View changed files

📝 packages/loot-core/src/shared/util.js (+12 -4)
📝 packages/loot-core/src/shared/util.test.js (+5 -0)
upcoming-release-notes/808.md (+6 -0)

📄 Description

  • When parsing an amount string, consider surrounding parentheses to mean the amount is negative.
  • Ensures all input to parseFloat() is sanitized.

Closes: #807


🔄 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/808 **Author:** [@aharbis](https://github.com/aharbis) **Created:** 3/23/2023 **Status:** ✅ Merged **Merged:** 3/24/2023 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `issue-807` --- ### 📝 Commits (2) - [`659cf5f`](https://github.com/actualbudget/actual/commit/659cf5f469fc827e01d0e52b897c3d7d94ce5434) transaction-import: treat (amount) as -amount - [`768b16c`](https://github.com/actualbudget/actual/commit/768b16cb1755313b2147734b5bc78a847e25e308) add release notes ### 📊 Changes **3 files changed** (+23 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/shared/util.js` (+12 -4) 📝 `packages/loot-core/src/shared/util.test.js` (+5 -0) ➕ `upcoming-release-notes/808.md` (+6 -0) </details> ### 📄 Description - When parsing an amount string, consider surrounding parentheses to mean the amount is negative. - Ensures all input to `parseFloat()` is sanitized. Closes: #807 <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes --> --- <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-02-28 20:40:12 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3343