Skip to content

Commit 840cec9

Browse files
committed
FIX #25856 / Group Ordered Products report by SKU.
1 parent c7ca62e commit 840cec9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function addOrderedQty($from = '', $to = '')
8484
)->columns(
8585
'SUM(order_items.qty_ordered) as ordered_qty'
8686
)->group(
87-
'order_items.product_id'
87+
'order_items.sku'
8888
);
8989
return $this;
9090
}

app/code/Magento/Reports/etc/db_schema_whitelist.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@
149149
"REPORT_VIEWED_PRD_AGGRED_YEARLY_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true
150150
}
151151
}
152-
}
152+
}

0 commit comments

Comments
 (0)