mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
return early if no payments
This commit is contained in:
parent
289c4952a0
commit
5837d544ea
@ -428,7 +428,7 @@ class Design extends BaseDesign
|
|||||||
|
|
||||||
public function statementPaymentTableTotals(): array
|
public function statementPaymentTableTotals(): array
|
||||||
{
|
{
|
||||||
if (is_null($this->payments) && $this->type !== self::STATEMENT) {
|
if (!$this->payments->first() || $this->type !== self::STATEMENT) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user