tambah data kpi untuk operasi dan HR
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user