fix filtering dealer and data with base on user login, partial update precheck and postcheck schema and view
This commit is contained in:
@@ -57,4 +57,24 @@ class Transaction extends Model
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_sa_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the precheck associated with the transaction
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function precheck()
|
||||
{
|
||||
return $this->hasOne(Precheck::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the postcheck associated with the transaction
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function postcheck()
|
||||
{
|
||||
return $this->hasOne(Postcheck::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user