Work on VOIP and Domain products
This commit is contained in:
@@ -11,6 +11,10 @@ class Voip extends ServiceType implements ServiceItem
|
||||
use NextKey;
|
||||
const RECORD_ID = 'service__adsl';
|
||||
|
||||
protected $dates = [
|
||||
'service_connect_date',
|
||||
'service_contract_date',
|
||||
];
|
||||
protected $table = 'ab_service__voip';
|
||||
|
||||
/**
|
||||
@@ -32,4 +36,9 @@ class Voip extends ServiceType implements ServiceItem
|
||||
{
|
||||
return $this->service_number;
|
||||
}
|
||||
|
||||
public function inContract(): bool
|
||||
{
|
||||
return $this->service_contract_date AND $this->service_contract_date->addMonths($this->contract_term)->isFuture();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user