Add model_number to accessory search

This commit is contained in:
snipe 2017-02-22 22:55:20 -08:00
parent e7f7d739ed
commit 9e7f998df5

View file

@ -162,6 +162,7 @@ class Accessory extends SnipeModel
$query->where('locations.name', 'LIKE', '%'.$search.'%');
});
})->orWhere('accessories.name', 'LIKE', '%'.$search.'%')
->orWhere('accessories.model_number', 'LIKE', '%'.$search.'%')
->orWhere('accessories.order_number', 'LIKE', '%'.$search.'%')
->orWhere('accessories.purchase_cost', 'LIKE', '%'.$search.'%')
->orWhere('accessories.purchase_date', 'LIKE', '%'.$search.'%');