mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Don't show send date for draft recurring invoices
This commit is contained in:
parent
0d39625ce0
commit
17889ef5a7
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user