diff --git a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php index d43465d0ed60..b9134d52620b 100644 --- a/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php +++ b/app/Services/PdfMaker/Designs/Utilities/DesignHelpers.php @@ -36,6 +36,11 @@ trait DesignHelpers $this->entity = $this->context['entity']; } + if (isset($this->context['invoices'])) { + $this->invoices = $this->context['invoices']; + $this->entity = $this->invoices->first(); + } + $this->document(); return $this;