bunqCommunity / bunqDesktop

The unofficial, free and open source desktop application for the bunq API
https://bunqdesk.top
MIT License
272 stars 53 forks source link

Statistics don't recognize savings #474

Open t3ns1on opened 5 years ago

t3ns1on commented 5 years ago

The statistics don't recognize if a part of the total amount of one payment is a saving.

Example:

This payment is categorized with the total amount in the statistics, so that the statistics says the expenses for Gas-Stations is 10€ and not 6.50€ how it should be.

In a monthly view this discalculation is totally distorting the statistics.

I hope this is not a general limitation of the bunq-API 🙏

I'm using bunqDesktop 0.9.5 on Windows 10 64bit

Crecket commented 5 years ago

This is going to be a bit tricky to implement since the payment to send money to your savings account isn't directly connected to the actual payment as far as I know. So in the savings payment, there isn't a "actual-payment-id" to let me know which one it is connected with unless I'm mistaken.

I'll look into this but I'm not sure if this is going to be possible in a reasonable way without making lots of guesses.

t3ns1on commented 5 years ago

Maybe there is a workaround with the help of the transactions timing. When I'm right, then the saving transaction, or at least the request for it, is happening at the exact same second as the "main-transaction", which was initiated by the user.

So if the Application is checking

1. if there are more than one transaction happening in the user account

2. it should be able to check at the second step if the "other transaction" transfer the amount of money just inside the user account or to an external IBAN (or whatever)

3. and at the third step it maybe could check if the amount of money of the "main transaction", which exist as a user input (which was typed into an input field), would be the final amount of the transaction which is at the moment logged into the statistics if the amount of the "other transaction" is added to it.

Im a native german speaker, so my english is not the best, but I hope, that my long text describes good how my idea of the 3 Steps of if-conditions works. Maybe you can use this 😄