Add module to enable or disable ujrah type payment

- 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
This commit is contained in:
Afiq Hamzah
2024-05-18 22:33:55 +08:00
parent 67652b6f45
commit 87515f010a
4 changed files with 339 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
<?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');
}
}