|
@@ -1178,7 +1178,7 @@ class ProductService extends Service
|
|
|
public function productGroupByListData($data, $user, $search){
|
|
|
if(empty($data['data'])) return $data;
|
|
|
|
|
|
- $type = $search['type'] ?? 0;
|
|
|
+ $type = $search['type'] ?? 1;
|
|
|
$category = ProductCategory::whereIn('id',array_unique(array_column($data['data'],'product_category_id')))
|
|
|
->select('title','id')
|
|
|
->get()
|