Add more details to Service Movements

This commit is contained in:
Deon George
2018-11-21 14:37:17 +11:00
parent 72fcdab84e
commit a9f545412b
5 changed files with 26 additions and 2 deletions

View File

@@ -11,6 +11,13 @@ class ServiceVoip extends Model
protected $table = 'ab_service__voip';
public $timestamps = FALSE;
public function getFullNameAttribute()
{
return ($this->service_number AND $this->service_address)
? sprintf('%s: %s',$this->service_number, $this->service_address)
: $this->name;
}
public function getNameAttribute()
{
return $this->service_number;