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:
parent
289c4952a0
commit
5837d544ea
@ -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…
Reference in New Issue
Block a user