Code refactor work. New optimised query to get invoice status summary for an account
This commit is contained in:
@@ -20,10 +20,6 @@ class Broadband extends Type implements ServiceUsage
|
||||
{
|
||||
private const LOGKEY = 'MSB';
|
||||
|
||||
protected $casts = [
|
||||
'connect_at'=>'datetime:Y-m-d',
|
||||
'expire_at'=>'datetime:Y-m-d',
|
||||
];
|
||||
protected $table = 'service_broadband';
|
||||
|
||||
/* INTERFACES */
|
||||
|
@@ -14,7 +14,9 @@ class Domain extends Type
|
||||
use ServiceDomains;
|
||||
|
||||
protected $table = 'service_domain';
|
||||
protected $with = ['tld'];
|
||||
protected $with = [
|
||||
'tld',
|
||||
];
|
||||
|
||||
/* OVERRIDES */
|
||||
|
||||
|
@@ -13,5 +13,7 @@ class Email extends Type
|
||||
use ServiceDomains;
|
||||
|
||||
protected $table = 'service_email';
|
||||
protected $with = ['tld'];
|
||||
protected $with = [
|
||||
'tld',
|
||||
];
|
||||
}
|
@@ -14,7 +14,9 @@ class Host extends Type
|
||||
use ServiceDomains;
|
||||
|
||||
protected $table = 'service_host';
|
||||
protected $with = ['tld'];
|
||||
protected $with = [
|
||||
'tld',
|
||||
];
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
|
@@ -8,10 +8,6 @@ namespace App\Models\Service;
|
||||
*/
|
||||
class Phone extends Type
|
||||
{
|
||||
protected $dates = [
|
||||
'connect_at',
|
||||
'expire_at',
|
||||
];
|
||||
protected $table = 'service_phone';
|
||||
|
||||
/* INTERFACES */
|
||||
|
@@ -14,9 +14,11 @@ abstract class Type extends Model implements ServiceItem
|
||||
{
|
||||
use ScopeServiceActive,ScopeServiceUserAuthorised;
|
||||
|
||||
protected $dates = [
|
||||
'expire_at',
|
||||
protected $casts = [
|
||||
'connect_at' => 'datetime:Y-m-d',
|
||||
'expire_at' => 'datetime:Y-m-d',
|
||||
];
|
||||
|
||||
public $timestamps = FALSE;
|
||||
|
||||
/* RELATIONS */
|
||||
|
Reference in New Issue
Block a user