Skip to content

Commit 45fc72e

Browse files
committed
reverted changes for bundle product report
1 parent 96ea851 commit 45fc72e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

app/code/Magento/Reports/Model/ResourceModel/Product/Sold/Collection.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ public function addOrderedQty($from = '', $to = '')
7373
['order' => $this->getTable('sales_order')],
7474
implode(' AND ', $orderJoinCondition),
7575
[]
76-
)->joinLeft(
77-
['child_items' => $this->getTable('sales_order_item')],
78-
'child_items.parent_item_id=order_items.item_id
79-
AND order_items.product_type="bundle"
80-
AND order_items.sku NOT LIKE CONCAT(\'%\', child_items.sku, \'%\')',
81-
[
82-
'child_items_sku' => 'child_items.sku'
83-
]
8476
)->where(
8577
'order_items.parent_item_id IS NULL'
8678
)->having(

app/code/Magento/Reports/view/adminhtml/layout/reports_report_product_sold_grid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<argument name="header_css_class" xsi:type="string">col-product</argument>
4242
</arguments>
4343
</block>
44-
<block class="Magento\Reports\Block\Adminhtml\Grid\Column" as="sku">
44+
<block class="Magento\Backend\Block\Widget\Grid\Column" as="sku">
4545
<arguments>
4646
<argument name="header" xsi:type="string" translate="true">SKU</argument>
4747
<argument name="type" xsi:type="string">text</argument>

0 commit comments

Comments
 (0)