Fixes for service change, validation added for date and product_id
This commit is contained in:
@@ -1065,6 +1065,11 @@ class Service extends Model implements IDs
|
||||
return ! is_null($this->price);
|
||||
}
|
||||
|
||||
public function isContract(): bool
|
||||
{
|
||||
return $this->getContractEndAttribute()->greaterThan(Carbon::now());
|
||||
}
|
||||
|
||||
/**
|
||||
* Identify if a service is being ordered, ie: not active yet nor cancelled
|
||||
*
|
||||
|
Reference in New Issue
Block a user