mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check default docs in hasDocs
This commit is contained in:
parent
6b2cd153d3
commit
947c1e2a12
@ -1330,7 +1330,11 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
*/
|
*/
|
||||||
public function hasDocuments()
|
public function hasDocuments()
|
||||||
{
|
{
|
||||||
if (count($this->documents)) {
|
if ($this->documents->count()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->account->defaultDocuments->count()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user