mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fix for pausing recurring invoices
This commit is contained in:
parent
58970fab99
commit
0ae2c6db27
@ -33,7 +33,8 @@ class RecurringService
|
||||
*/
|
||||
public function stop()
|
||||
{
|
||||
$this->status_id = RecurringInvoice::STATUS_PAUSED;
|
||||
if($this->recurring_entity->status_id < RecurringInvoice::STATUS_PAUSED)
|
||||
$this->recurring_entity->status_id = RecurringInvoice::STATUS_PAUSED;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user