Merge branch 'staging' into feature/senior-officer
This commit is contained in:
22
app/Models/JenisLaporan.php
Normal file
22
app/Models/JenisLaporan.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\JenisLaporanFactory;
|
||||
|
||||
class JenisLaporan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
|
||||
// Define the table if not using default table naming
|
||||
protected $table = 'jenis_laporan';
|
||||
|
||||
|
||||
protected $fillable = ['code', 'name'];
|
||||
}
|
||||
18
app/Models/PenawaranTender.php
Normal file
18
app/Models/PenawaranTender.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class PenawaranTender extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $table = 'penawaran';
|
||||
|
||||
protected $guarded = ['id'];
|
||||
}
|
||||
@@ -28,38 +28,52 @@ class Permohonan extends Base
|
||||
'authorized_status',
|
||||
'authorized_by',
|
||||
'status_bayar',
|
||||
'nilai_njop'
|
||||
'nilai_njop',
|
||||
// andy add
|
||||
'registrasi_catatan',
|
||||
'registrasi_by',
|
||||
'registrasi_at',
|
||||
'jenis_penilaian_id',
|
||||
'region_id'
|
||||
];
|
||||
|
||||
public function user(){
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function branch(){
|
||||
public function branch()
|
||||
{
|
||||
return $this->belongsTo(Branch::class);
|
||||
}
|
||||
|
||||
public function tujuanPenilaian(){
|
||||
public function tujuanPenilaian()
|
||||
{
|
||||
return $this->belongsTo(TujuanPenilaian::class);
|
||||
}
|
||||
|
||||
public function debiture(){
|
||||
public function debiture()
|
||||
{
|
||||
return $this->belongsTo(Debiture::class);
|
||||
}
|
||||
|
||||
public function documents(){
|
||||
public function documents()
|
||||
{
|
||||
return $this->hasMany(DokumenJaminan::class);
|
||||
}
|
||||
|
||||
public function nilaiPlafond(){
|
||||
public function nilaiPlafond()
|
||||
{
|
||||
return $this->belongsTo(NilaiPlafond::class);
|
||||
}
|
||||
|
||||
public function jenisFasilitasKredit(){
|
||||
public function jenisFasilitasKredit()
|
||||
{
|
||||
return $this->belongsTo(JenisFasilitasKredit::class);
|
||||
}
|
||||
|
||||
public function penilaian(){
|
||||
public function penilaian()
|
||||
{
|
||||
return $this->belongsTo(Penilaian::class, 'nomor_registrasi', 'nomor_registrasi');
|
||||
}
|
||||
}
|
||||
|
||||
23
app/Models/PermohonanJaminan.php
Normal file
23
app/Models/PermohonanJaminan.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\PermohonanJaminanFactory;
|
||||
|
||||
class PermohonanJaminan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'dokumen_jaminan';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
// protected $fillable = [];
|
||||
protected $guarded = [];
|
||||
|
||||
protected static function newFactory(): PermohonanJaminanFactory
|
||||
{
|
||||
//return PermohonanJaminanFactory::new();
|
||||
}
|
||||
}
|
||||
19
app/Models/TujuanPenilaianKJPP.php
Normal file
19
app/Models/TujuanPenilaianKJPP.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\TujuanPenilaianKJPPFactory;
|
||||
|
||||
class TujuanPenilaianKJPP extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'tujuan_penilaian_kjpp';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['code', 'name'];
|
||||
}
|
||||
Reference in New Issue
Block a user