[PR #2502] Fix reconciling split translations from nYNAB import creates orphan transfers #4336

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

Original Pull Request: https://github.com/actualbudget/actual/pull/2502

State: closed
Merged: Yes


Tentative fix for #2436

It is a bit more convoluted than I would like it to be, but nYNAB exports are missing several key fields on subtransactions.

The code will try to match subtransaction transfers with transaction transfers (missing the transfer_transaction_id field, which indicate that the transfer is linked to a subtransaction). Matching is made by ordering arrays of transactions and subtransactions, and trying to find matching data to store the linked ids. Unmatched data (if that should happens) will still be imported and will behave like currently in Actual.

I also streamlined payee import on transactions and subtransactions. This fix a small bug where payee on subtransactions are not imported.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/2502 **State:** closed **Merged:** Yes --- Tentative fix for #2436 It is a bit more convoluted than I would like it to be, but nYNAB exports are missing several key fields on subtransactions. The code will try to match subtransaction transfers with transaction transfers (missing the transfer_transaction_id field, which indicate that the transfer is linked to a subtransaction). Matching is made by ordering arrays of transactions and subtransactions, and trying to find matching data to store the linked ids. Unmatched data (if that should happens) will still be imported and will behave like currently in Actual. I also streamlined payee import on transactions and subtransactions. This fix a small bug where payee on subtransactions are not imported. <!-- 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 -->
GiteaMirror added the pull-request label 2026-02-28 20:54:36 -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#4336