feat(lpj): peningkatan model & service inspeksi, penawaran, preview

- Models: Inspeksi tambah 'mig_detail_data_jaminan' pada 'fillable'.
- Models: PersetujuanPenawaran ubah import User, hapus 3 field lama.
- Models: PersetujuanPenawaran tambah relasi 'region' (belongsTo Region).
- Services: PreviewLaporanService tambah 22 item kategori preview.
- Services: SaveFormInspesksiService refaktor parsing action & rules.
- Services: TypeLaporanService tambah helper alamat & lokasi wilayah.
- Services: TypeLaporanService tambahkan updateOrCreate untuk Penilai.
- Services: TypeLaporanService tambah getInspeksi dan stub updatePenilai.
- Cleanup: penataan kode, trimming, kurangi nested kondisi; mohon cek namespace.
This commit is contained in:
Daeng Deni Mardaeni
2025-11-10 10:09:24 +07:00
parent 7f9c58aabe
commit 45f0d387fd
5 changed files with 872 additions and 27 deletions

View File

@@ -14,7 +14,7 @@ class Inspeksi extends Base
/**
* The attributes that are mass assignable.
*/
protected $fillable = ['data_form', 'foto_form', 'denah_form','permohonan_id', 'name', 'status', 'authorized_status', 'authorized_at', 'authorized_by', 'created_by', 'updated_by', 'deleted_by','dokument_id','data_pembanding'];
protected $fillable = ['data_form', 'foto_form', 'denah_form','permohonan_id', 'name', 'status', 'authorized_status', 'authorized_at', 'authorized_by', 'created_by', 'updated_by', 'deleted_by','dokument_id','data_pembanding','mig_detail_data_jaminan'];
public function permohonan()
{

View File

@@ -2,7 +2,7 @@
namespace Modules\Lpj\Models;
use Modules\Usermanagement\Models\User;
use Modules\Usermanagemenet\Models\User;
class PersetujuanPenawaran extends Base
{
@@ -13,9 +13,6 @@
'permohonan_id',
'penawaran_id',
'nomor_proposal_penawaran',
'nomor_tiket',
'nominal_kurang_bayar',
'bukti_ksl_kurang_bayar',
'tanggal_proposal_penawaran',
'biaya_final',
'sla_resume',
@@ -49,6 +46,12 @@
return $this->belongsTo(Permohonan::class, 'permohonan_id');
}
// Relationship with Region
public function region()
{
return $this->belongsTo(Region::class);
}
// Relationship with User (for authorized_by)
public function authorizedBy()
{