Show cancel date on service information widget
This commit is contained in:
@@ -38,6 +38,7 @@ class ServiceController extends Controller
|
||||
|
||||
$o->order_info->put('cancel_cancel',Carbon::now()->format('Y-m-d H:i:s'));
|
||||
$o->order_status = 'ACTIVE';
|
||||
$o->stop_at = NULL;
|
||||
|
||||
return $o->save();
|
||||
}
|
||||
|
@@ -1077,6 +1077,11 @@ class Service extends Model implements IDs
|
||||
&& (! in_array($this->order_status,array_merge(self::INACTIVE_STATUS,['INACTIVE'])));
|
||||
}
|
||||
|
||||
public function isPendingCancel(): bool
|
||||
{
|
||||
return in_array(strtolower($this->order_status),['cancel-request','cancel-pending']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a collection of invoice_item objects that will be billed for the next invoice
|
||||
*
|
||||
|
Reference in New Issue
Block a user