diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 8625585f0c..069aaf6809 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -428,7 +428,7 @@ class Design extends BaseDesign public function statementPaymentTableTotals(): array { - if (is_null($this->payments) && $this->type !== self::STATEMENT) { + if (!$this->payments->first() || $this->type !== self::STATEMENT) { return []; }