fix filtering dealer and data with base on user login, partial update precheck and postcheck schema and view

This commit is contained in:
2025-07-10 18:04:38 +07:00
parent cec11d6385
commit e52c4d1d27
13 changed files with 2139 additions and 9 deletions

View File

@@ -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);
}
}