Minor fixes

This commit is contained in:
David Bomba 2024-09-19 13:48:02 +10:00
parent 5731763071
commit 9977f2c47e
2 changed files with 7 additions and 1 deletions

View File

@ -102,7 +102,6 @@ class CreateRawPdf
*/ */
public function handle() public function handle()
{ {
/** Testing this override to improve PDF generation performance */
$ps = new PdfService($this->invitation, $this->resolveType(), [ $ps = new PdfService($this->invitation, $this->resolveType(), [
'client' => $this->entity->client ?? false, 'client' => $this->entity->client ?? false,
'vendor' => $this->entity->vendor ?? false, 'vendor' => $this->entity->vendor ?? false,

View File

@ -343,6 +343,13 @@ class TemplateService
} }
public function setEntity($entity): self
{
$this->entity = $entity;
return $this;
}
/** /**
* Parses all variables in the document * Parses all variables in the document
* *