[WIP] ASO Payment

This commit is contained in:
R
2023-01-05 18:28:45 +07:00
parent 0fdad5a6c2
commit 804ac883fa
41 changed files with 882 additions and 177 deletions

View File

@@ -62,7 +62,6 @@ class Member extends Model
'full_name',
'age',
'gender_code',
''
];
protected $hidden = [
@@ -74,13 +73,16 @@ class Member extends Model
'deleted_by',
];
public function claims()
{
return $this->hasMany(Claim::class, 'member_id', 'id');
}
public function postponedClaims()
{
return $this->hasMany(Claim::class, 'member_id', 'id')->where('status', 'postpone');
}
public function person()
{
return $this->belongsTo(Person::class, 'person_id', 'id');