Replies: 3 comments 1 reply
-
Perhaps something like this, but I'm not sure on the impact on the wider project....? // app/Http/Controllers/Account/IndexController.php @line ~96 // ... (previous code) ... // Define the start moment for the 'startBalances' calculation Log::debug(sprintf('inactive start: finalAccountsBalance("%s") (requested start)', $start->format('Y-m-d H:i:s'))); // Change THIS LINE: // Keep this line as is: $activities = Steam::getLastActivities($ids); // ... (rest of the code) ... |
Beta Was this translation helpful? Give feedback.
-
Yes, this is by design. If I understand you correctly, you were expecting this behavior:
But instead, you see
Is that correct? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, I agree with your logic, but this was not quite the issue I was experiencing... In the Assets (e.g. /accounts/asset) page it gives 'balance difference' on the far right for each account. For me it's showing a value that is excluding transactions that happened on the 1st of the month (at 00:00), when I would expect it to include them. So if balance is starting £0
The current balance is correct and shows £30, but the balance difference is showing £10 instead of £20 that I think it should be showing? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just started using this project, and looks really good, but just wanted to explain what I've seen as I was thinking of raising bug but thought i'd discuss first just incase it is expected behaviour
[Bug] Inaccurate "Balance difference" on Accounts Overview with Date-Only Transactions (v6.2.21)
I've encountered a persistent discrepancy with the "Balance difference" displayed on the /accounts/asset overview page. Initially it was definitely partly my lack of understanding but after extensive debugging, I believe I've pinpointed the underlying behavior that causes it.
Firstly the UI doesn't show the time period (on the assets page) that the Balance difference referes to so it's difficult to figure it out especially given the behaviour descriped below.
Secondly (the main issue): It seems to me that monthly starting balances are calculated including transactions that occur on the first of the month @ 00:00 (e.g. imported from CSV with date only and no time).
This effectively means that the 'Balance Difference shown on the assets page is that from the 2nd of the month until now (if imported transactions don't have timestamps).
Example of logs
[2025-07-19 11:45:16] production.DEBUG: Updated entry [2025-07-16] {"balance":"xxxx.300000000000",...}
->This is the correct end-of-period balance).
[2025-07-19 11:45:16] production.DEBUG: Start balance for account #8 ("nnnn) is {"balance":"yyyy.260000000000",...}
-> The start balance calculated here includes transactions on the first of the month
Firefly III Version: v6.2.21
Firefly III Data Importer Version: v1.7.7
Hosting Method: Docker
Database: MariaDB LTS
Browser: Chrome
Thank you for your time and for maintaining such a valuable project! I'm happy to provide any further logs or information that might be helpful.
Beta Was this translation helpful? Give feedback.
All reactions