mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Insert generic for client country if not set (#3022)
This commit is contained in:
parent
b42702fbdd
commit
b371dbaf47
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user