Updated ERP with new modules and features
This commit is contained in:
@@ -4,9 +4,11 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use App\Traits\LogsActivity;
|
||||
|
||||
class NetworkOperator extends Model
|
||||
{
|
||||
use LogsActivity;
|
||||
protected $guarded = array('id');
|
||||
public $table = "network_operators";
|
||||
|
||||
@@ -15,6 +17,8 @@ class NetworkOperator extends Model
|
||||
'support_emails' => 'array',
|
||||
'finance_emails' => 'array',
|
||||
'bind_specifics' => 'array',
|
||||
'contract_auto_renew' => 'boolean',
|
||||
'next_renewal_date' => 'date',
|
||||
];
|
||||
public function account_manager_info(){
|
||||
return $this->hasOne('App\Models\StaffMember', 'id', 'account_manager_id');
|
||||
@@ -23,6 +27,10 @@ class NetworkOperator extends Model
|
||||
{
|
||||
return $this->hasMany(NetworkOperatorConnection::class, 'network_operator_id');
|
||||
}
|
||||
public function documents()
|
||||
{
|
||||
return $this->hasMany(NetworkOperatorDocument::class);
|
||||
}
|
||||
/*
|
||||
public function setBuyingRateAttribute($value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user