-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Akaunting version
3.1.14
PHP version
8.1
Operating system
Linux
Steps to reproduce
- Navigate to Settings > Localisation
- Set Financial Year Start to "1 October"
- Set Financial Year Denote to "By the year in which it begins"
- Click Save
- Open the dashboard
Expected result
When the Dashboard opens it defaults to the This Year period.
The expectation is the period should be 1 October 2024 - 30 September 2025.
Actual result
When the Dashboard opens it defaults to the This Year period.
The actual period is being shown is 1 October 2025 - 30 September 2025.
Additional comments
When the Dashboard opens it defaults to the This Year period.
The expectation is the period should be 1 October 2024 - 30 September 2025 except the dashboard interprets This Year as 1 October 2025 - 30 September 2025.
The expectation is that if the current day (in this case 8 January 2025) falls within a period that is considered the current period - ie. 08 Jan 2025 is between (inclusively) 1 October 2024 - 30 September 2025 and therefore the current period aka "This Year" should be 1 October 2024 - 30 September 2024.
What is actually happening is the code is possibly doing something along the lines of:
- The current year is 2025
- The Financial Year Start is 1 October
- Make a date of 1 October 2025 and set that as the start of the This Year period.
Relevant log output
No response