Skip to content

Commit 446f0c0

Browse files
Surabhi SrivastavaPrakash Prajapati
Surabhi Srivastava
authored and
Prakash Prajapati
committed
Fixed Issue magento#22087
Fixed Issue magento#22087
1 parent 23d4ad8 commit 446f0c0

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Reports/Model/ResourceModel/Product/Sold

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public function addOrderedQty($from = '', $to = '')
7979
)->having(
8080
'order_items.qty_ordered > ?',
8181
0
82+
)->columns(
83+
'SUM(order_items.qty_ordered) as ordered_qty'
84+
)->group(
85+
'order_items.product_id'
8286
);
8387
return $this;
8488
}

0 commit comments

Comments
 (0)