[Added: phone and gender columns in filter.]

This commit is contained in:
Vivek 2019-10-18 13:31:56 +05:30
parent f8767adc0d
commit 6989513c62
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ use DB;
* CustomerDataGrid class
*
* @author Prashant Singh <prashant.singh852@webkul.com> @prashant-webkul
* @author Vivek Sharma <viveksh047@webkul.com> @viveksh-webkul
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)
*/
class CustomerDataGrid extends DataGrid
@ -28,7 +29,8 @@ class CustomerDataGrid extends DataGrid
$this->addFilter('customer_id', 'customers.id');
$this->addFilter('full_name', DB::raw('CONCAT(customers.first_name, " ", customers.last_name)'));
$this->addFilter('date_of_birth', 'customers.date_of_birth');
$this->addFilter('phone', 'customers.phone');
$this->addFilter('gender', 'customers.gender');
$this->setQueryBuilder($queryBuilder);
}