- Issue created by @ricovandevin
We have a setup in which we use Drupal Commerce to power both a webshop and a physical point of sale. Our point of sale has a training mode that we can use to train new employees. Orders made in training mode are marked using a custom field.
We would like to be able to exclude the training orders from the reports. But currently \Drupal\commerce_reports\OrderReportGenerator::generateReports()
just loads all entities of type commerce_order and passes them to reporting plugins. Of course we can decorate the commerce_reports.order_report_generator
service and implement our own generateReports()
method. But with a few code changes in the Commerce Reporting module we might enable a more elegant way that is usable for different use cases.
N/A
TBD
- Design solution
- Create MR
- Review MR
- Merge MR
N/A
Introduce an option to filter out orders when generating reports.
N/A
Active
1.0
Code