From df059c83844112ee834f17b03b29ecef6b1b4c3b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 8 Dec 2023 10:33:42 +1100 Subject: [PATCH] Fixes for invoices with custom quote / invoice headers --- app/Services/Pdf/PdfBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Pdf/PdfBuilder.php b/app/Services/Pdf/PdfBuilder.php index c871bf6ba5..07f9305ef8 100644 --- a/app/Services/Pdf/PdfBuilder.php +++ b/app/Services/Pdf/PdfBuilder.php @@ -863,7 +863,7 @@ class PdfBuilder // This sprintf() will help us convert "task" or "product" into "$task" or "$product" without // evaluating the variable. - if (in_array(sprintf('%s%s.tax', '$', $type), (array) $this->service->config->pdf_variables["{$type}_columns"])) { + if (in_array(sprintf('%s%s.tax', '$', $type), (array) $this->service->config->pdf_variables["{$column_type}_columns"])) { $line_items = collect($this->service->config->entity->line_items)->filter(function ($item) use ($type_id) { return $item->type_id == $type_id; // = != == bad comparison operator fix 2023-11-12 });