1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for invoices with custom quote / invoice headers

This commit is contained in:
David Bomba 2023-12-08 10:33:42 +11:00
parent 94236b07d7
commit df059c8384

View File

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