diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 7a56b2696b..9b4ca31d1d 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -328,6 +328,10 @@ class Design extends BaseDesign { $tbody = []; + if (is_null($this->invoices)) { + return []; + } + foreach ($this->invoices as $invoice) { $element = ['element' => 'tr', 'elements' => []];