Fix status pembayaran by cawangan operasi and akaun
This commit is contained in:
@@ -27,4 +27,9 @@ class LelongBidder extends Model
|
||||
public function lelongbid() {
|
||||
return $this->hasOne(LelongBid::class,'id', 'lelongbid_id');
|
||||
}
|
||||
|
||||
public function payment()
|
||||
{
|
||||
return $this->hasOne(Payment::class, 'lelongbid_id', 'lelongbid_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,4 +41,9 @@ class Payment extends Model
|
||||
'disahkan_pada',
|
||||
'disahkan_oleh'
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,4 +73,9 @@ class User extends Authenticatable
|
||||
return $this->hasOne(Cawangan::class, 'caw_code' , 'kodcaw');
|
||||
}
|
||||
|
||||
public function payment()
|
||||
{
|
||||
return $this->hasMany(Payment::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user