We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59b3846 + 42b2f03 commit f2f801cCopy full SHA for f2f801c
packages/Webkul/Admin/src/DataGrids/Product/ProductDataGrid.php
@@ -37,6 +37,9 @@ public function prepareQueryBuilder(): Builder
37
}
38
39
$this->addFilter('id', 'products.id');
40
+ $this->addFilter('sku', 'products.sku');
41
+ $this->addFilter('name', 'products.name');
42
+ $this->addFilter('price', 'products.price');
43
$this->addFilter('total_in_stock', DB::raw('SUM('.$tablePrefix.'product_inventories.in_stock'));
44
$this->addFilter('total_allocated', DB::raw('SUM('.$tablePrefix.'product_inventories.allocated'));
45
$this->addFilter('total_on_hand', DB::raw('SUM('.$tablePrefix.'product_inventories.in_stock - '.$tablePrefix.'product_inventories.allocated'));
0 commit comments