9 Commits

Author SHA1 Message Date
Sander Dorigo
de7033ee63 Fix #12029 2026-03-25 16:56:46 +01:00
James Cole
ee16888317 Catch null pointer. 2026-03-22 06:41:55 +01:00
JC5
21af34c65a 🤖 Auto commit for release 'develop' on 2026-03-21 2026-03-21 00:01:23 +01:00
James Cole
21f9be6504 Rewrite calculation service for #11982
- moved reset methods to this class
- Add method `recalculateForGroupAndCurrency` that accepts a $limitCurrency as third argument.
- Add `recalculateAccountsForCurrency` and `calculateTransactionsForCurrency`

`recalculateForGroupAndCurrency` can recalculate any foreign amount back to the primary currency (just like the class was already capable of) BUT limits the action to foreign amounts in $limitCurrency. This greatly reduces the rework necessary. This means the method can be safely called when changing currency exchange rates.

Not all methods in `recalculateForGroupAndCurrency` actually care about the given $limitCurrency but the methods that don't aren't doing much anyway, so it's OK to recalculate everything even though its not necessary.
2026-03-20 07:17:33 +01:00
James Cole
b3d048eb67 Fix https://github.com/orgs/firefly-iii/discussions/11977 2026-03-20 06:01:23 +01:00
James Cole
12f19c6c34 Remove all "@phpstan-ignore-line" entries. 2026-03-06 07:39:12 +01:00
JC5
2de9926db8 🤖 Auto commit for release 'develop' on 2026-02-06 2026-02-06 13:55:17 +01:00
JC5
3032118788 🤖 Auto commit for release 'develop' on 2026-02-04 2026-02-04 07:50:20 +01:00
James Cole
0b33e1ff09 Refactor recalculation service. 2026-02-03 20:43:52 +01:00