-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Akaunting version
3.1.12
PHP version
Cloud Trial
Operating system
Cloud Trial
Steps to reproduce
- Start company, go to reports
- Go to any report
- Delete date range from the filters
- Add
Date range = Previous year
- Delete range again
- Add
Date range = This year
Expected result
- I would expect that the
This year
shows always 2024 - I would expect that the
Previous year
shows always 2023 - but I might be mistaken in this one - I would expect that selecting
This year
again takes me back to 2024
Actual result
- Result when the report is first opened
- Switch to last year - notice that the
Date Range
filter still saysThis year
but the URL parameters are correct, so the data are correct
- Selected
Previous year
again -Date Range
still saysThis year
but the URL parameters went to 2022 - to the previous year from the previously selected
- Selected
This year
- does nothing, URL still says 2022 - nothing has changes
Additional comments
I noticed that the URL query parameters are sometimes not separated by &
but just by
(whitespace) or both. - example below
common/reports/2135880?search=basis:accrual period:monthly &start_date=2023-01-01&end_date=2023-12-31
When selecting which accounts to omit the parameter has space in it. This sometimes led me to just zero in the report, although there should have been some transactions accounted for.
common/reports/2?search=basis:accrual period:monthly not account_id:2,3,4
Shouldn't these be URL encoded?
Might be connected to #3230
Relevant log output
No response