diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 2b306b7426d4..bf6065fd8f23 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -956,6 +956,10 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function getNextSendDate() { + if (! $this->is_public) { + return null; + } + if ($this->start_date && ! $this->last_sent_date) { $startDate = $this->getOriginal('start_date') . ' ' . $this->account->recurring_hour . ':00:00';