searching issue in datagrid

This commit is contained in:
rahul shukla 2019-09-12 16:53:05 +05:30
parent 61da74ee2b
commit 1ac6650673
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ class OrderDataGrid extends DataGrid
$this->addFilter('billed_to', DB::raw('CONCAT(order_address_billing.first_name, " ", order_address_billing.last_name)'));
$this->addFilter('shipped_to', DB::raw('CONCAT(order_address_shipping.first_name, " ", order_address_shipping.last_name)'));
$this->addFilter('id', 'orders.id');
$this->addFilter('increment_id', 'orders.increment_id');
$this->addFilter('created_at', 'orders.created_at');
$this->setQueryBuilder($queryBuilder);
@ -45,7 +45,7 @@ class OrderDataGrid extends DataGrid
$this->addColumn([
'index' => 'increment_id',
'label' => trans('admin::app.datagrid.id'),
'type' => 'number',
'type' => 'string',
'searchable' => false,
'sortable' => true,
'filterable' => true

View File

@ -45,7 +45,7 @@ class OrderInvoicesDataGrid extends DataGrid
$this->addColumn([
'index' => 'order_id',
'label' => trans('admin::app.datagrid.order-id'),
'type' => 'number',
'type' => 'string',
'searchable' => true,
'sortable' => true,
'filterable' => true

View File

@ -54,7 +54,7 @@ class OrderShipmentsDataGrid extends DataGrid
$this->addColumn([
'index' => 'shipment_order_id',
'label' => trans('admin::app.datagrid.order-id'),
'type' => 'number',
'type' => 'string',
'searchable' => true,
'sortable' => true,
'filterable' => true

View File

@ -31,7 +31,7 @@ class OrderDataGrid extends DataGrid
$this->addColumn([
'index' => 'increment_id',
'label' => trans('shop::app.customer.account.order.index.order_id'),
'type' => 'text',
'type' => 'string',
'searchable' => false,
'sortable' => true,
'filterable' => true