feat(qma): implement unit support timesheet input, vehicle meter & location sync, and exports
This commit is contained in:
@@ -82,6 +82,11 @@ class Employee extends Model
|
||||
return $this->hasMany(P2hRecord::class, 'employee_id')->orderByDesc('inspected_at');
|
||||
}
|
||||
|
||||
public function supportTimesheets(): HasMany
|
||||
{
|
||||
return $this->hasMany(UnitSupportTimesheet::class, 'operator_id')->orderByDesc('date');
|
||||
}
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
|
||||
Reference in New Issue
Block a user