Penambahn P1 Dev
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Rekapitulasi;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class P1Dev extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $table = 'rekapitulasi.p1';
|
||||
|
||||
protected $fillable = [
|
||||
'tahun',
|
||||
'bulan',
|
||||
'nip',
|
||||
'nama',
|
||||
'jenis_pegawai',
|
||||
'status_pegawai',
|
||||
'id_unit_kerja',
|
||||
'nama_unit_kerja',
|
||||
'id_unit_pembayaran',
|
||||
'pangkat',
|
||||
'golongan',
|
||||
'id_jabatan_fungsional',
|
||||
'nama_jabatan_fungsional',
|
||||
'grade_jabatan_fungsional',
|
||||
'gaji_jabatan_fungsional',
|
||||
'id_jabatan_tugas_tambahan',
|
||||
'nama_jabatan_tugas_tambahan',
|
||||
'grade_jabatan_tugas_tambahan',
|
||||
'gaji_jabatan_tugas_tambahan',
|
||||
'gaji_yang_dibayarkan',
|
||||
'pph21',
|
||||
'gaji_bersih',
|
||||
'npwp',
|
||||
'nomor_rekening',
|
||||
'keterangan',
|
||||
'is_locked',
|
||||
'paid_at',
|
||||
'gaji_yang_dibayarkan_final',
|
||||
'pph_21_final',
|
||||
'gaji_bersih_final',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'is_locked' => 'boolean',
|
||||
'paid_at' => 'datetime',
|
||||
'gaji_yang_dibayarkan_final' => 'decimal:2',
|
||||
'pph_21_final' => 'decimal:2',
|
||||
'gaji_bersih_final' => 'decimal:2',
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Rekapitulasi;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class P1Penyesuaian extends Model
|
||||
{
|
||||
protected $table = 'rekapitulasi.p1_penyesuaian';
|
||||
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['sebelum' => 'array', 'sesudah' => 'array', 'tmt' => 'array', 'tst' => 'date'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user