From 4184b271f7aa9704b4df14cec259a446e6852b0a Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 8 Jan 2024 14:22:35 -0800 Subject: [PATCH] adds Supplier as a searchable relation on the asset maintenance report --- app/Models/AssetMaintenance.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/AssetMaintenance.php b/app/Models/AssetMaintenance.php index 5da663fc4b..274b1f6440 100644 --- a/app/Models/AssetMaintenance.php +++ b/app/Models/AssetMaintenance.php @@ -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()