From 8793aab59c8ec768b43e6ea2e4cc9abef64c3b4c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Jul 2023 11:59:04 +1000 Subject: [PATCH] Fixes for Purchase Order display --- app/Http/Livewire/PdfSlot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/PdfSlot.php b/app/Http/Livewire/PdfSlot.php index 7e2945fc06..8c8770eb12 100644 --- a/app/Http/Livewire/PdfSlot.php +++ b/app/Http/Livewire/PdfSlot.php @@ -113,9 +113,9 @@ class PdfSlot extends Component $this->show_line_total = in_array('$product.line_total', $this->settings->pdf_variables->product_quote_columns); } - $this->html_variables = $this->entity->client ? - (new HtmlEngine($this->invitation))->generateLabelsAndValues() : - (new VendorHtmlEngine($this->invitation))->generateLabelsAndValues(); + $this->html_variables = $this->entity_type == 'purchase_order' ? + (new VendorHtmlEngine($this->invitation))->generateLabelsAndValues() : + (new HtmlEngine($this->invitation))->generateLabelsAndValues(); return render('components.livewire.pdf-slot', [ 'invitation' => $this->invitation,