1
0
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:
David Bomba 2021-02-02 07:14:38 +11:00
parent 58970fab99
commit 0ae2c6db27

View File

@ -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;
}