Open MarcusWolschon opened 6 years ago
Seems that after composer config repositories.degdigital-magento2-customreport vcs https://github.com/degdigital/magento2-customreports.git composer require degdigital/magento2-customreports --no-update
I forgot to enable the module via bin/magento module:enable DEG_CustomReports --clear-static-content" then bin/magento setup:upgrade then bin/magento setup:di:compile
That would be something to be added to README.md
It should also be mentioned that the xml-block for the "readonly" user should go into app/etc/env.php (and it should probably use "localhost" instead of the legacy-IP 127.0.0.1 to be compatible with ::1) and how to create the read-only user CREATE USER 'magenro'@'localhost' IDENTIFIED BY 'XXXXX'; GRANT SELECT on magento_db.* to 'magenro'@'localhost';
also here is an example-report to get users started (shows exports=sales without sales tax)
select
sales_order.entity_id as orderID,
YEAR(sales_order.created_at) as year,
MONTH(sales_order.created_at) as month,
FORMAT(sales_order.total_qty_ordered
, 2) as total_qty_ordered,
FORMAT(sales_order.total_paid
, 2) as total_paid,
FORMAT(sales_order.total_refunded
, 2) as total_refunded
from
sales_order
left outer join
sales_order_tax
on (sales_order.entity_id = sales_order_tax.order_id)
where
sales_order_tax.order_id is null
AND
sales_order.total_paid
> 0
ORDER BY YEAR(sales_order.created_at) DESC, MONTH(sales_order.created_at) DESC
This can be closed after https://github.com/degdigital/magento2-customreports/pull/46 is merged.
The readonly part is not relevant any more, but might be in the future, see #42
I have installed this module via composer. Now what?
There seems to be some user documentation missing on how to use it.
It's not lised in "reports" or in the list of all modules in stores->configuration->advanced->advanced but was installed by composer and does exist under /vendors.