mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Removed unused method
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
087f0e596a
commit
6ab4314221
|
@ -79,23 +79,6 @@ class Supplier extends SnipeModel
|
||||||
return $this->hasMany(Asset::class)->whereNull('deleted_at')->selectRaw('supplier_id, count(*) as count')->groupBy('supplier_id');
|
return $this->hasMany(Asset::class)->whereNull('deleted_at')->selectRaw('supplier_id, count(*) as count')->groupBy('supplier_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the license seat count attribute
|
|
||||||
*
|
|
||||||
* @todo I don't see the licenseSeatsRelation here?
|
|
||||||
*
|
|
||||||
* @author A. Gianotto <snipe@snipe.net>
|
|
||||||
* @since [v1.0]
|
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\Relation
|
|
||||||
*/
|
|
||||||
public function getLicenseSeatsCountAttribute()
|
|
||||||
{
|
|
||||||
if ($this->licenseSeatsRelation->first()) {
|
|
||||||
return $this->licenseSeatsRelation->first()->count;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Establishes the supplier -> assets relationship
|
* Establishes the supplier -> assets relationship
|
||||||
|
|
Loading…
Reference in a new issue