e29a5891c8
Reviewed-on: #5 Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com> Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
50 lines
1.0 KiB
PHP
50 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DataKpi extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'datakpi';
|
|
|
|
protected $fillable = [
|
|
'caw_id',
|
|
'kodcaw',
|
|
'tahun_kpi',
|
|
'tahun',
|
|
'bulan',
|
|
'jawatan',
|
|
'namastaff',
|
|
'nokpstaff',
|
|
'pc_bilpembiayaan',
|
|
'pc_pembiayaan',
|
|
'pc_bilpendapatan',
|
|
'pc_pendapatan',
|
|
'pc_pelangganbaru',
|
|
'ppc_aging1',
|
|
'ppc_aging2',
|
|
'ppc_aging3',
|
|
'ppc_penebusan',
|
|
'penilai_bilgadai',
|
|
'penilai_pembiayaan',
|
|
'teller_bilgadai',
|
|
'teller_pembiayaan',
|
|
'teller_biltebus',
|
|
'teller_tebuspembiayaan',
|
|
];
|
|
|
|
public function cawangan()
|
|
{
|
|
return $this->belongsTo(Cawangan::class, 'caw_id', 'id');
|
|
}
|
|
|
|
public function cawanganKpi()
|
|
{
|
|
return $this->hasOne(CawanganKpi::class, 'caw_id', 'caw_id');
|
|
}
|
|
}
|