return early if no payments
This commit is contained in:
parent
289c4952a0
commit
5837d544ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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 [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue