From ebe6b243d86fd9a0a0929e78bef56997c282e822 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Thu, 16 Sep 2021 11:29:09 +0530 Subject: [PATCH] Fixed Issue: https://github.com/bagisto/bagisto/issues/5155 --- packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php b/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php index 54e59f972..6eb0a77f6 100644 --- a/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php +++ b/packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php @@ -135,7 +135,7 @@ class ProductDataGrid extends DataGrid 'product_flat.status', 'product_flat.price', 'attribute_families.name as attribute_family', - DB::raw('SUM(DISTINCT ' . DB::getTablePrefix() . 'product_inventories.qty) as quantity') + DB::raw('SUM(' . DB::getTablePrefix() . 'product_inventories.qty) as quantity') ); $queryBuilder->groupBy('product_flat.product_id', 'product_flat.locale', 'product_flat.channel');