From b42702fbdd84939ca6086b3940b3877940925455 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 25 Oct 2019 20:56:38 +1100 Subject: [PATCH] V2 (#3021) * Implement transformer for ClientGatewayTokens * Add company_gateway_id to client gateway token transformer * Fixes for client model * Fixes for Number class * Insert generic for client country if not set --- app/Utils/Traits/MakesInvoiceValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index cb9ffde72ca0..6dd41d0f56bf 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -209,7 +209,7 @@ trait MakesInvoiceValues $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['$postal_city_state'] = $this->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, TRUE); - $data['$country'] = $this->client->country->name; + $data['$country'] = $this->client->country->name ?: 'No Country Set'; $data['$email'] = isset($this->client->primary_contact()->first()->email) ?: 'no contact email on record'; $data['$contact_name'] = $this->client->present()->primary_contact_name(); $data['$company_name'] = $this->company->present()->name();