Skip to content

Commit b8bc288

Browse files
author
Surabhi Srivastava
authored
Fixed Issue #22087
Fixed Issue #22087
1 parent 19fcb92 commit b8bc288

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)