diff --git a/app/Mail/Engine/PaymentEmailEngine.php b/app/Mail/Engine/PaymentEmailEngine.php index d60fa8939f..e33e86f0d6 100644 --- a/app/Mail/Engine/PaymentEmailEngine.php +++ b/app/Mail/Engine/PaymentEmailEngine.php @@ -198,6 +198,12 @@ class PaymentEmailEngine extends BaseEmailEngine $data['$client.vat_number'] = &$data['$vat_number']; $data['$client.website'] = &$data['$website']; $data['$client.phone'] = &$data['$phone']; + $data['$city'] = ['value' => $this->client->city ?: ' ', 'label' => ctrans('texts.city')]; + $data['$client.city'] = &$data['$city']; + $data['$state'] = ['value' => $this->client->state ?: ' ', 'label' => ctrans('texts.state')]; + $data['$client.state'] = &$data['$state']; + $data['$postal_code'] = ['value' => $this->client->postal_code ?: ' ', 'label' => ctrans('texts.postal_code')]; + $data['$client.postal_code'] = &$data['$postal_code']; $data['$city_state_postal'] = ['value' => $this->client->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, false) ?: ' ', 'label' => ctrans('texts.city_state_postal')]; $data['$client.city_state_postal'] = &$data['$city_state_postal']; $data['$postal_city_state'] = ['value' => $this->client->present()->cityStateZip($this->client->city, $this->client->state, $this->client->postal_code, true) ?: ' ', 'label' => ctrans('texts.postal_city_state')];