firefly-iii / firefly-iii

Firefly III: a personal finances manager
https://firefly-iii.org/
GNU Affero General Public License v3.0
15.98k stars 1.45k forks source link

Reconcile calculates wrong difference if the timespan has been partially reconciled before. #9285

Open goebeler opened 2 weeks ago

goebeler commented 2 weeks ago

Support guidelines

I've found a bug and checked that ...

Description

Reconcile ignores transaction values that have been reconciled before which leads to a wrong difference being calculated.

Debug information

Debug information generated at 2024-09-29 17:57:01 for Firefly III version v6.1.19.

System information
ItemValue
Firefly III6.1.19 / v2.1.0 / 24 (exp. 24)
PHP version8.3.9 (64bits) / apache2handler / Linux x86_64
BCscale12
Error reportingDisplay: Off, reporting: ALL errors
Max upload67108864 (64 MB)
Database driversmysql, *pgsql*, sqlite,
Docker build#1113, base #86
Firefly III information
ItemValue
TimezoneEurope/Berlin + Europe/Berlin
App environmentproduction, debug: false
Layoutv1
Loggingnotice, stack / (empty)
Cache driverfile
Default language and localede_DE + equal
Trusted proxies**
Login provider & user guardeloquent / web
Login headersN/A + N/A
Stateful domains
Last cron jobnever (never)
Mailerlog
User-specific information
ItemValue
User#1 of 1
User flags
Session start2015-05-04 15:22:00
Session end2024-09-29 15:22:00
View range1M
User languagede_DE
User localede_DE
Locale(s) supportedde_DE.utf8: :white_check_mark:
de_DE.UTF-8: :white_check_mark:
User agentMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Expected behaviour

It should consider all transactions regardless if they have been reconciled before and calculate a correct difference

Steps to reproduce

  1. have some transactions (let's assume 2 weeks for this example)
  2. start reconcile
  3. set the time span to include the first week
  4. enter the start and end ballance, everything looks right
  5. mark all transactions as correct
  6. save the state
  7. restart reconcile
  8. set the time span two the whole 2 weeks (including the week you just did in the steps before)
  9. even if all transactions are actually complete and correct, the UI is going to show a difference that amounts exactly to the sum of all transactions that have been reconciled in the first round. They seem to be ignored for the calculatino eventhough they belong to the timespan.

Additional info

No response

JC5 commented 2 weeks ago

Nice, thanks for opening an issue! I'll check it out.

github-actions[bot] commented 2 weeks ago

Hi there!

This is an automatic reply. Share and enjoy

This issue has been marked as being in triage. The root cause is not known yet, or the issue needs more investigation. You can help by sharing debug information (from /debug) if you also have this issue or when you haven't already done so.

Thank you for your contributions.