diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 7bed6bc820..bf69ebff6d 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1330,7 +1330,11 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function hasDocuments() { - if (count($this->documents)) { + if ($this->documents->count()) { + return true; + } + + if ($this->account->defaultDocuments->count()) { return true; }