87515f010a
- Added migration to create table to store the parameter values - Added ability to determine if branch is using calculation method v1 or v2 - Added API to enable client to get the payability of the ujrah payment and also change the parameter itself
21 lines
396 B
PHP
21 lines
396 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class PayableUjrahBranch extends Model
|
|
{
|
|
protected $fillable = [
|
|
'details_caw',
|
|
'kodcaw',
|
|
'gadaian_ujrah_payable',
|
|
];
|
|
|
|
public function cawangan_information()
|
|
{
|
|
return $this->belongsTo(Cawangan::class, 'kodcaw', 'kodcaw');
|
|
}
|
|
}
|