Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Introduce config flag for N26 to only import processed transactions #38

Merged
merged 3 commits into from
Jan 2, 2019

Conversation

gitviola
Copy link
Owner

@gitviola gitviola commented Dec 26, 2018

Background story

Because the values that we get from the (not official) N26 API change from time to time, people often end up with duplicated transactions.

There has already been effort in avoiding that but it is still happening.

What the PR will do

This PR will introduce a new config flag for the N26 Dumper called skip_pending_transactions.

This setting will be set to false by default. When set to true, all transactions that are still pending (= not processed by N26) won't be imported by the script until they are processed.

This will prevent duplicate entries but comes with the tradeoff that it might take a few days for transactions to show up in your YNAB.

The PR will fix #36.

Because the values that we get from the (not official) N26 API change from time to time, people often end up with duplicated transactions. There as already been effort in avoiding that (#16) but it is still happening.

This PR will introduce a new config flag for the [N26 Dumper](https://github.com/schurig/ynab-bank-importer/wiki/n26) called `skip_pending_transactions`. This setting will be set to `false` by default. When set to true, all transactions that are still pending _(= not processed by N26)_ won't be imported by the script until they are processed. This will prevent duplicate entries but comes with the tradeoff that it might take a few days for transactions to show up in your YNAB.
The calculated_timestamp method was used to resolve the timezone issue from N26. But for this to work we needed to find out the currect offset. And because the UTC-offset changes twice a year, this code stopped working properly with the latest daylight-saving time change.
lib/dumper/n26.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@manuelgrabowski manuelgrabowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gitviola gitviola merged commit 5665024 into master Jan 2, 2019
@gitviola gitviola deleted the feature/n26-only-processed-transactions branch January 2, 2019 09:53
@wizonesolutions
Copy link

Oh, never noticed this one! We finally figured this out. Great :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

N26 importer creates duplicate entries
4 participants