Writeoff/Entities/Debitur.php

37 lines
797 B
PHP
Raw Permalink Normal View History

2023-11-13 12:13:33 +00:00
<?php
namespace Modules\Writeoff\Entities;
class Debitur extends BaseModel
{
protected $table = 'debitur';
protected $fillable = [
'branch_id',
'kode',
'name',
'address',
'npwp',
'status',
'registered_at',
'authorized_at',
'authorized_status',
'authorized_by',
];
2023-11-15 08:04:25 +00:00
public function branch()
{
return $this->belongsTo(Branch::class);
}
public function rekenings()
{
return $this->hasMany(Rekening::class);
}
2024-04-02 08:40:50 +00:00
public function subrogasi_jamkrindo()
{
return $this->hasMany(SubrogasiJamkrindo::class, 'kode_debitur', 'kode');
}
2023-11-13 12:13:33 +00:00
}