Report Plugin for Sylius. This plugin add a report interface to the Sylius administration. Some reports comes with this bundle but you can create your custom reports.
MIT License
31
stars
10
forks
source link
Datas does not gather well when yearly period time is defined #24
It appears that when using the yearly period time format, datas are still displayed according to their months.
I've been creating a PR that fix the problem:
by setting month and day to 1 and 1 by default if you choose the yearly period (those ones are not relevant when datas are displayed by years)
and by using the DATE_FORMAT doctrine function (instead of DATE) (need to be import by the user in his doctrine.yaml file). The date format is passed as a parameter of the query builder. I've defined the three formats in the DataFetcher\Data class as constants, and created a function that returns the format according to what it receives in the configuration.
The two screenshots here shows how the plugin is working now:
It appears that when using the yearly period time format, datas are still displayed according to their months.
I've been creating a PR that fix the problem:
The two screenshots here shows how the plugin is working now:
![image](https://github.com/odiseoteam/SyliusReportPlugin/assets/82578062/9cd703b1-a723-463c-ba11-2560d7895c28)
And here find how it works with the fixes:
![image](https://github.com/odiseoteam/SyliusReportPlugin/assets/82578062/e58d7317-5352-4984-a3a2-6f7a7b51aaf4)
Here is the link to the PR: https://github.com/odiseoteam/SyliusReportPlugin/pull/23
I remain available here to answer any questions or to discuss the choices I've made.