Allow restarting of archived recurring invoices
This commit is contained in:
parent
b0c8a1ecff
commit
155a7de8e0
1 changed files with 4 additions and 1 deletions
|
|
@ -50,9 +50,12 @@ class RecurringService
|
|||
|
||||
public function start()
|
||||
{
|
||||
if ($this->recurring_entity->remaining_cycles == 0) {
|
||||
if ($this->recurring_entity->remaining_cycles == 0 || $this->recurring_entity->is_deleted) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
if($this->recurring_entity->trashed())
|
||||
$this->recurring_entity->restore();
|
||||
|
||||
$this->setStatus(RecurringInvoice::STATUS_ACTIVE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue