mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Fixed #4566 - search by purchase_date
This commit is contained in:
parent
912ee20f3c
commit
636c558fe6
|
@ -817,6 +817,8 @@ class Asset extends Depreciable
|
||||||
->orWhere('assets.asset_tag', 'LIKE', '%'.$search.'%')
|
->orWhere('assets.asset_tag', 'LIKE', '%'.$search.'%')
|
||||||
->orWhere('assets.serial', 'LIKE', '%'.$search.'%')
|
->orWhere('assets.serial', 'LIKE', '%'.$search.'%')
|
||||||
->orWhere('assets.order_number', 'LIKE', '%'.$search.'%')
|
->orWhere('assets.order_number', 'LIKE', '%'.$search.'%')
|
||||||
|
->orWhere('assets.purchase_date', 'LIKE', '%'.$search.'%')
|
||||||
|
->orWhere('assets.purchase_cost', 'LIKE', '%'.$search.'%')
|
||||||
->orWhere('assets.notes', 'LIKE', '%'.$search.'%');
|
->orWhere('assets.notes', 'LIKE', '%'.$search.'%');
|
||||||
}
|
}
|
||||||
foreach (CustomField::all() as $field) {
|
foreach (CustomField::all() as $field) {
|
||||||
|
|
Loading…
Reference in a new issue