Insert generic for client country if not set (#3022)

This commit is contained in:
David Bomba 2019-10-25 20:58:16 +11:00 committed by GitHub
parent b42702fbdd
commit b371dbaf47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ trait MakesInvoiceValues
$data['$phone'] = $this->client->present()->phone(); $data['$phone'] = $this->client->present()->phone();
$data['$city_state_postal'] = $this->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, FALSE); $data['$city_state_postal'] = $this->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, FALSE);
$data['$postal_city_state'] = $this->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, TRUE); $data['$postal_city_state'] = $this->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, TRUE);
$data['$country'] = $this->client->country->name ?: 'No Country Set'; $data['$country'] = isset($this->client->country->name) ?: 'No Country Set';
$data['$email'] = isset($this->client->primary_contact()->first()->email) ?: 'no contact email on record'; $data['$email'] = isset($this->client->primary_contact()->first()->email) ?: 'no contact email on record';
$data['$contact_name'] = $this->client->present()->primary_contact_name(); $data['$contact_name'] = $this->client->present()->primary_contact_name();
$data['$company_name'] = $this->company->present()->name(); $data['$company_name'] = $this->company->present()->name();