Fixes: issue #13073: deleted component addearing in asset component tab fixed

This commit is contained in:
ak-piracha 2023-05-31 00:11:11 +09:30
parent 13e8f91a59
commit 1cdf089306

View file

@ -403,7 +403,7 @@ class Asset extends Depreciable
*/
public function components()
{
return $this->belongsToMany('\App\Models\Component', 'components_assets', 'asset_id', 'component_id')->withPivot('id', 'assigned_qty', 'created_at')->withTrashed();
return $this->belongsToMany('\App\Models\Component', 'components_assets', 'asset_id', 'component_id')->withPivot('id', 'assigned_qty', 'created_at');
}