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 });