A simple plugin to have sales reports in Sylius
composer require monsieurbiz/sylius-sales-reports-plugin
Change your config/bundles.php
file to add the line for the plugin :
<?php
return [
//..
MonsieurBiz\SyliusSalesReportsPlugin\MonsieurBizSyliusSalesReportsPlugin::class => ['all' => true],
];
Finally import the routes in config/routes/monsieurbiz_sylius_sales_reports_plugin.yaml
:
monsieurbiz_sales_reports_plugin:
resource: "@MonsieurBizSyliusSalesReportsPlugin/Resources/config/routing.yaml"
All reports columns are sortable by clicking on it.
An event is available to add your custom reports, see CustomReportEvent
class in the plugin.
You can open an issue or a Pull Request if you want! 😘
Thank you!