Skip to content

Commit

Permalink
Import locked transactions from nYNAB (#2474)
Browse files Browse the repository at this point in the history
* Import locked transactions from nYNAB

* Import locked transactions from nYNAB
- Adding PR release note
  • Loading branch information
Wizmaster authored Mar 20, 2024
1 parent 6281cc7 commit 501c6a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop-client/e2e/data/ynab5-demo-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@
"date": "2023-08-04",
"amount": 0,
"memo": "getting paid",
"cleared": "cleared",
"cleared": "reconciled",
"approved": true,
"flag_color": null,
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
Expand Down Expand Up @@ -1657,7 +1657,7 @@
"date": "2023-08-04",
"amount": 1000000,
"memo": "",
"cleared": "cleared",
"cleared": "reconciled",
"approved": true,
"flag_color": null,
"account_id": "bc1d862f-bab0-41c3-bd1e-6cee8c688e32",
Expand Down
1 change: 1 addition & 0 deletions packages/loot-core/src/server/importers/ynab5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ async function importTransactions(
amount: amountFromYnab(transaction.amount),
category: entityIdMap.get(transaction.category_id) || null,
cleared: ['cleared', 'reconciled'].includes(transaction.cleared),
reconciled: transaction.cleared === 'reconciled',
notes: transaction.memo || null,
imported_id: transaction.import_id || null,
transfer_id:
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/2474.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [Wizmaster]
---

Import reconciled transactions from nYNAB

0 comments on commit 501c6a0

Please sign in to comment.