1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

return early if no payments

This commit is contained in:
David Bomba 2021-09-21 22:40:00 +10:00
parent 289c4952a0
commit 5837d544ea

View File

@ -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 [];
}