di.xml 1.6 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <type name="Magento\Reports\Model\ResourceModel\Customer\Collection">
  10. <arguments>
  11. <argument name="modelName" xsi:type="string">Magento\Customer\Model\Backend\Customer</argument>
  12. </arguments>
  13. </type>
  14. <type name="Magento\Reports\Controller\Adminhtml\Report\Statistics">
  15. <arguments>
  16. <argument name="reportTypes" xsi:type="array">
  17. <item name="sales" xsi:type="string">Magento\Sales\Model\ResourceModel\Report\Order</item>
  18. <item name="tax" xsi:type="string">Magento\Tax\Model\ResourceModel\Report\Tax</item>
  19. <item name="shipping" xsi:type="string">Magento\Sales\Model\ResourceModel\Report\Shipping</item>
  20. <item name="invoiced" xsi:type="string">Magento\Sales\Model\ResourceModel\Report\Invoiced</item>
  21. <item name="refunded" xsi:type="string">Magento\Sales\Model\ResourceModel\Report\Refunded</item>
  22. <item name="coupons" xsi:type="string">Magento\SalesRule\Model\ResourceModel\Report\Rule</item>
  23. <item name="bestsellers" xsi:type="string">Magento\Sales\Model\ResourceModel\Report\Bestsellers</item>
  24. <item name="viewed" xsi:type="string">Magento\Reports\Model\ResourceModel\Report\Product\Viewed</item>
  25. </argument>
  26. </arguments>
  27. </type>
  28. </config>