|
@@ -10,7 +10,9 @@ class CompanyLocation extends Model
|
|
|
protected $table = 'company_location';
|
|
|
|
|
|
public function displayName(){
|
|
|
- return implode(" ", [$this->line1, $this->city, $this->state]);
|
|
|
+ $parts = [$this->internal_name, $this->line1, $this->city, $this->state];
|
|
|
+ if(trim(implode('', $parts)) == '') return '';
|
|
|
+ return implode(", ", $parts);
|
|
|
}
|
|
|
|
|
|
public function format(){
|