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

@@ -12,6 +12,13 @@ class ServiceAdsl extends Model
protected $table = 'ab_service__adsl';
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 ?: $this->service_address;