adds Supplier as a searchable relation on the asset maintenance report

This commit is contained in:
Godfrey M 2024-01-08 14:22:35 -08:00
parent 0c6611d6bd
commit 4184b271f7

View file

@ -72,6 +72,7 @@ class AssetMaintenance extends Model implements ICompanyableChild
protected $searchableRelations = [
'asset' => ['name', 'asset_tag'],
'asset.model' => ['name', 'model_number'],
'asset.supplier' => ['name'],
];
public function getCompanyableParents()