Add model_number to accessory search

This commit is contained in:
snipe 2017-02-22 22:34:56 -08:00
parent bb4c443cd9
commit f7e4fca70d

View file

@ -154,6 +154,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.'%');