[PR #744] [MERGED] 🐛 (nordigen) fix detection of -0.00 "debited" transactions #3298

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/744
Author: @Jackenmen
Created: 3/12/2023
Status: Merged
Merged: 3/12/2023
Merged by: @j-f1

Base: masterHead: patch-1


📝 Commits (2)

  • f844214 (nordigen) fix detection of -0.00 "debited" transactions
  • df103f2 Add clarification comment

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/accounts/sync.js (+4 -1)

📄 Description

Check if the transaction amount is a positive 0 rather than -0.
I went for casting the string with Number but I could instead replace the whole condition with !trans.amount.startsWith('-') or with trans.amount > 0 || trans.amount == '0.00' if either of these variants are preferred.

Fix for https://github.com/actualbudget/actual/issues/724#issuecomment-1464907064


🔄 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/744 **Author:** [@Jackenmen](https://github.com/Jackenmen) **Created:** 3/12/2023 **Status:** ✅ Merged **Merged:** 3/12/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`f844214`](https://github.com/actualbudget/actual/commit/f844214c30b6be226dba445fd95054527dfc16e0) (nordigen) fix detection of -0.00 "debited" transactions - [`df103f2`](https://github.com/actualbudget/actual/commit/df103f281bac53d7b9f6a920c42282987bfd8ce9) Add clarification comment ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/accounts/sync.js` (+4 -1) </details> ### 📄 Description Check if the transaction amount is a positive 0 rather than -0. I went for casting the string with `Number` but I could instead replace the whole condition with `!trans.amount.startsWith('-')` or with `trans.amount > 0 || trans.amount == '0.00'` if either of these variants are preferred. Fix for https://github.com/actualbudget/actual/issues/724#issuecomment-1464907064 --- <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:39:31 -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#3298