1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for Purchase Order display

This commit is contained in:
David Bomba 2023-07-26 11:59:04 +10:00
parent 57ce922cc9
commit 8793aab59c

View File

@ -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->show_line_total = in_array('$product.line_total', $this->settings->pdf_variables->product_quote_columns);
} }
$this->html_variables = $this->entity->client ? $this->html_variables = $this->entity_type == 'purchase_order' ?
(new HtmlEngine($this->invitation))->generateLabelsAndValues() : (new VendorHtmlEngine($this->invitation))->generateLabelsAndValues() :
(new VendorHtmlEngine($this->invitation))->generateLabelsAndValues(); (new HtmlEngine($this->invitation))->generateLabelsAndValues();
return render('components.livewire.pdf-slot', [ return render('components.livewire.pdf-slot', [
'invitation' => $this->invitation, 'invitation' => $this->invitation,