From 5955544464b12ebb9cf66ba1620c5fa7c1b9e05d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 6 Nov 2023 12:56:43 +1100 Subject: [PATCH] Fixes for stacked fields --- app/Services/Template/TemplateService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Template/TemplateService.php b/app/Services/Template/TemplateService.php index d17287d7e9..bdf1e9ed15 100644 --- a/app/Services/Template/TemplateService.php +++ b/app/Services/Template/TemplateService.php @@ -860,6 +860,7 @@ class TemplateService private function companyDetails(): self { + $company_details = collect($this->company->settings->pdf_variables['company_details']) ->filter(function ($variable) { return isset($this->variables['values'][$variable]) && !empty($this->variables['values'][$variable]); @@ -869,6 +870,7 @@ class TemplateService })->toArray(); + $this->parseStack() return $this; }