feat(qma): add start time and remove breakdown hours from support timesheet form

This commit is contained in:
Ray1111-aa
2026-10-22 08:34:15 +07:00
parent 61f2a85e3e
commit d1711ee292
3 changed files with 108 additions and 128 deletions
@@ -197,6 +197,16 @@ class SupportTimesheetController extends Controller
$request->merge(['shift' => 'Shift Siang']); $request->merge(['shift' => 'Shift Siang']);
} }
// 4. Tangani normalisasi format jam mulai (start_time)
if ($request->filled('start_time')) {
$st = trim((string) $request->input('start_time'));
if (strlen($st) >= 5) {
$request->merge(['start_time' => substr($st, 0, 5)]);
}
} else {
$request->merge(['start_time' => '08:00']);
}
$validated = $request->validate([ $validated = $request->validate([
'vehicle_id' => ['required', 'exists:vehicles,id'], 'vehicle_id' => ['required', 'exists:vehicles,id'],
'operator_id' => ['required', 'exists:employees,id'], 'operator_id' => ['required', 'exists:employees,id'],
@@ -256,7 +266,7 @@ class SupportTimesheetController extends Controller
'date' => $validated['date'], 'date' => $validated['date'],
'shift' => $shift, 'shift' => $shift,
'meter_type' => $validated['meter_type'], 'meter_type' => $validated['meter_type'],
'start_time' => $validated['start_time'] ?? null, 'start_time' => $validated['start_time'] ?? '08:00',
'end_time' => $validated['end_time'] ?? null, 'end_time' => $validated['end_time'] ?? null,
'start_meter' => $startMeter, 'start_meter' => $startMeter,
'end_meter' => $endMeter, 'end_meter' => $endMeter,
@@ -337,6 +347,13 @@ class SupportTimesheetController extends Controller
$request->merge(['shift' => 'Shift Siang']); $request->merge(['shift' => 'Shift Siang']);
} }
if ($request->filled('start_time')) {
$st = trim((string) $request->input('start_time'));
if (strlen($st) >= 5) {
$request->merge(['start_time' => substr($st, 0, 5)]);
}
}
$validated = $request->validate([ $validated = $request->validate([
'vehicle_id' => ['required', 'exists:vehicles,id'], 'vehicle_id' => ['required', 'exists:vehicles,id'],
'operator_id' => ['required', 'exists:employees,id'], 'operator_id' => ['required', 'exists:employees,id'],
@@ -370,7 +387,7 @@ class SupportTimesheetController extends Controller
'date' => $validated['date'], 'date' => $validated['date'],
'shift' => $shift, 'shift' => $shift,
'meter_type' => $validated['meter_type'], 'meter_type' => $validated['meter_type'],
'start_time' => $validated['start_time'] ?? null, 'start_time' => $validated['start_time'] ?? $timesheet->start_time ?? '08:00',
'end_time' => $validated['end_time'] ?? null, 'end_time' => $validated['end_time'] ?? null,
'start_meter' => $startMeter, 'start_meter' => $startMeter,
'end_meter' => $endMeter, 'end_meter' => $endMeter,
+56 -100
View File
@@ -265,6 +265,9 @@
<span class="inline-flex items-center text-[10px] font-medium text-slate-500 mt-0.5"> <span class="inline-flex items-center text-[10px] font-medium text-slate-500 mt-0.5">
<i class="fa-regular fa-clock mr-1 text-[9px] text-slate-400"></i> <i class="fa-regular fa-clock mr-1 text-[9px] text-slate-400"></i>
{{ $ts->shift }} {{ $ts->shift }}
@if($ts->start_time)
<span class="ml-1 text-slate-700 font-bold">• {{ \Carbon\Carbon::parse($ts->start_time)->format('H:i') }}</span>
@endif
</span> </span>
</td> </td>
@@ -342,6 +345,7 @@
data-timesheet="{{ json_encode([ data-timesheet="{{ json_encode([
'timesheet_no' => $ts->timesheet_no, 'timesheet_no' => $ts->timesheet_no,
'date' => $ts->date ? $ts->date->format('d/m/Y') : '-', 'date' => $ts->date ? $ts->date->format('d/m/Y') : '-',
'start_time' => $ts->start_time ? \Carbon\Carbon::parse($ts->start_time)->format('H:i') : null,
'shift' => $ts->shift, 'shift' => $ts->shift,
'code' => $ts->vehicle?->code ?: '-', 'code' => $ts->vehicle?->code ?: '-',
'brand_type' => $ts->vehicle?->brand_type ?: '-', 'brand_type' => $ts->vehicle?->brand_type ?: '-',
@@ -560,27 +564,40 @@
</div> </div>
</div> </div>
<!-- Baris 3: Tanggal, Shift (Shift Siang), Satuan Meteran --> <!-- Baris 3: Tanggal, Jam Mulai, Shift (Shift Siang), Satuan Meteran -->
<div class="grid grid-cols-1 sm:grid-cols-3 gap-3"> <div class="grid grid-cols-2 sm:grid-cols-4 gap-3">
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Tanggal <span class="text-rose-500">*</span> Tanggal <span class="text-rose-500">*</span>
</label> </label>
<input type="date" <input type="date"
name="date" name="date"
id="addDate"
value="{{ date('Y-m-d') }}" value="{{ date('Y-m-d') }}"
required required
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]"> class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]">
</div> </div>
<div>
<label class="block text-xs font-bold text-slate-800 mb-1.5">
Jam Mulai <span class="text-rose-500">*</span>
</label>
<input type="time"
name="start_time"
id="addStartTime"
value="08:00"
required
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 font-mono font-bold focus:outline-none focus:border-[#1b5e20]">
</div>
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Shift Kerja Shift Kerja
</label> </label>
<input type="hidden" name="shift" value="Shift Siang"> <input type="hidden" name="shift" value="Shift Siang">
<div class="flex items-center space-x-2 px-3.5 py-2 rounded-xl border border-slate-200 bg-slate-50 text-slate-700 text-xs font-bold"> <div class="flex items-center space-x-1.5 px-3 py-2 rounded-xl border border-slate-200 bg-slate-50 text-slate-700 text-xs font-bold">
<i class="fa-solid fa-sun text-amber-500 text-xs"></i> <i class="fa-solid fa-sun text-amber-500 text-xs"></i>
<span>Shift Siang</span> <span class="truncate">Shift Siang</span>
</div> </div>
</div> </div>
@@ -588,16 +605,15 @@
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Satuan Meteran <span class="text-rose-500">*</span> Satuan Meteran <span class="text-rose-500">*</span>
</label> </label>
<select name="meter_type" id="addMeterType" required class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]"> <select name="meter_type" id="addMeterType" required class="w-full text-xs px-2.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]">
<option value="HM">HM (Hour Meter)</option> <option value="HM">HM (Hour Meter)</option>
<option value="KM">KM (Odometer)</option> <option value="KM">KM (Odometer)</option>
</select> </select>
</div> </div>
</div> </div>
<!-- Baris 4: Odometer Awal Saja --> <!-- Baris 4: Odometer / Meter Awal Saja -->
<div class="p-4 rounded-xl bg-slate-50 border border-slate-200/90 space-y-3"> <div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200/90">
<div>
<label class="block text-xs font-bold text-slate-800 mb-1 flex items-center justify-between"> <label class="block text-xs font-bold text-slate-800 mb-1 flex items-center justify-between">
<span>Odometer / Meter Awal <span class="text-rose-500">*</span></span> <span>Odometer / Meter Awal <span class="text-rose-500">*</span></span>
<span class="text-[10px] text-slate-400 font-normal">Angka meter saat mulai shift</span> <span class="text-[10px] text-slate-400 font-normal">Angka meter saat mulai shift</span>
@@ -614,33 +630,6 @@
</div> </div>
</div> </div>
<!-- Input Opsional Jam Standby & Breakdown -->
<div class="grid grid-cols-2 gap-3 pt-2 border-t border-slate-200/60">
<div>
<label class="block text-[11px] font-semibold text-slate-600 mb-1">
Jam Standby <span class="text-slate-400 font-normal">(Jam Tunggu/Hujan)</span>
</label>
<input type="number"
step="0.1"
name="standby_hours"
value="0"
placeholder="0.0"
class="w-full text-xs px-3 py-1.5 rounded-lg border border-slate-200 bg-white text-slate-700 font-mono">
</div>
<div>
<label class="block text-[11px] font-semibold text-slate-600 mb-1">
Jam Breakdown <span class="text-slate-400 font-normal">(Jam Kerusakan Alat)</span>
</label>
<input type="number"
step="0.1"
name="breakdown_hours"
value="0"
placeholder="0.0"
class="w-full text-xs px-3 py-1.5 rounded-lg border border-slate-200 bg-white text-slate-700 font-mono">
</div>
</div>
</div>
<!-- Baris 5: Status Akhir Unit --> <!-- Baris 5: Status Akhir Unit -->
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
@@ -731,23 +720,12 @@
<div class="grid grid-cols-2 gap-3 p-3 bg-slate-50 rounded-xl border border-slate-200/60"> <div class="grid grid-cols-2 gap-3 p-3 bg-slate-50 rounded-xl border border-slate-200/60">
<div> <div>
<span class="text-[10px] font-bold uppercase text-slate-400 block">Meter Awal - Akhir</span> <span class="text-[10px] font-bold uppercase text-slate-400 block">Meter Awal (Start Meter)</span>
<span id="detailMeter" class="font-mono font-bold text-slate-800"></span> <span id="detailMeter" class="font-mono font-bold text-slate-800"></span>
</div> </div>
<div> <div>
<span class="text-[10px] font-bold uppercase text-slate-400 block">Total Jam Operasi</span> <span class="text-[10px] font-bold uppercase text-slate-400 block">Jam Mulai Kerja</span>
<span id="detailHours" class="font-bold text-emerald-700 text-sm"></span> <span id="detailStartTime" class="font-mono font-bold text-emerald-700 text-sm"></span>
</div>
</div>
<div class="grid grid-cols-2 gap-3 p-3 bg-slate-50 rounded-xl border border-slate-200/60">
<div>
<span class="text-[10px] font-bold uppercase text-slate-400 block">Standby / Breakdown</span>
<span id="detailStandbyBreakdown" class="text-slate-700 font-medium"></span>
</div>
<div>
<span class="text-[10px] font-bold uppercase text-slate-400 block">Pengisian Solar</span>
<span id="detailFuel" class="font-mono font-bold text-blue-700"></span>
</div> </div>
</div> </div>
@@ -902,8 +880,8 @@
</div> </div>
</div> </div>
<!-- Baris 3: Tanggal, Shift (Shift Siang), Satuan Meteran --> <!-- Baris 3: Tanggal, Jam Mulai, Shift (Shift Siang), Satuan Meteran -->
<div class="grid grid-cols-1 sm:grid-cols-3 gap-3"> <div class="grid grid-cols-2 sm:grid-cols-4 gap-3">
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Tanggal <span class="text-rose-500">*</span> Tanggal <span class="text-rose-500">*</span>
@@ -915,14 +893,25 @@
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]"> class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]">
</div> </div>
<div>
<label class="block text-xs font-bold text-slate-800 mb-1.5">
Jam Mulai <span class="text-rose-500">*</span>
</label>
<input type="time"
name="start_time"
id="editStartTime"
required
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 font-mono font-bold focus:outline-none focus:border-[#1b5e20]">
</div>
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Shift Kerja Shift Kerja
</label> </label>
<input type="hidden" name="shift" id="editShift" value="Shift Siang"> <input type="hidden" name="shift" id="editShift" value="Shift Siang">
<div class="flex items-center space-x-2 px-3.5 py-2 rounded-xl border border-slate-200 bg-slate-50 text-slate-700 text-xs font-bold"> <div class="flex items-center space-x-1.5 px-3 py-2 rounded-xl border border-slate-200 bg-slate-50 text-slate-700 text-xs font-bold">
<i class="fa-solid fa-sun text-amber-500 text-xs"></i> <i class="fa-solid fa-sun text-amber-500 text-xs"></i>
<span>Shift Siang</span> <span class="truncate">Shift Siang</span>
</div> </div>
</div> </div>
@@ -930,16 +919,15 @@
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
Satuan Meteran <span class="text-rose-500">*</span> Satuan Meteran <span class="text-rose-500">*</span>
</label> </label>
<select name="meter_type" id="editMeterType" required class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]"> <select name="meter_type" id="editMeterType" required class="w-full text-xs px-2.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 focus:outline-none focus:border-[#1b5e20]">
<option value="HM">HM (Hour Meter)</option> <option value="HM">HM (Hour Meter)</option>
<option value="KM">KM (Odometer)</option> <option value="KM">KM (Odometer)</option>
</select> </select>
</div> </div>
</div> </div>
<!-- Baris 4: Odometer Awal Saja --> <!-- Baris 4: Odometer / Meter Awal Saja -->
<div class="p-4 rounded-xl bg-slate-50 border border-slate-200/90 space-y-3"> <div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200/90">
<div>
<label class="block text-xs font-bold text-slate-800 mb-1 flex items-center justify-between"> <label class="block text-xs font-bold text-slate-800 mb-1 flex items-center justify-between">
<span>Odometer / Meter Awal <span class="text-rose-500">*</span></span> <span>Odometer / Meter Awal <span class="text-rose-500">*</span></span>
<span class="text-[10px] text-slate-400 font-normal">Angka meter saat mulai shift</span> <span class="text-[10px] text-slate-400 font-normal">Angka meter saat mulai shift</span>
@@ -956,35 +944,6 @@
</div> </div>
</div> </div>
<!-- Jam Standby & Breakdown -->
<div class="grid grid-cols-2 gap-3 pt-2 border-t border-slate-200/60">
<div>
<label class="block text-[11px] font-semibold text-slate-600 mb-1">
Jam Standby <span class="text-slate-400 font-normal">(Jam Tunggu/Hujan)</span>
</label>
<input type="number"
step="0.1"
name="standby_hours"
id="editStandbyHours"
value="0"
placeholder="0.0"
class="w-full text-xs px-3 py-1.5 rounded-lg border border-slate-200 bg-white text-slate-700 font-mono">
</div>
<div>
<label class="block text-[11px] font-semibold text-slate-600 mb-1">
Jam Breakdown <span class="text-slate-400 font-normal">(Jam Kerusakan Alat)</span>
</label>
<input type="number"
step="0.1"
name="breakdown_hours"
id="editBreakdownHours"
value="0"
placeholder="0.0"
class="w-full text-xs px-3 py-1.5 rounded-lg border border-slate-200 bg-white text-slate-700 font-mono">
</div>
</div>
</div>
<!-- Baris 5: Status Akhir Unit --> <!-- Baris 5: Status Akhir Unit -->
<div> <div>
<label class="block text-xs font-bold text-slate-800 mb-1.5"> <label class="block text-xs font-bold text-slate-800 mb-1.5">
@@ -1009,15 +968,6 @@
placeholder="Keterangan rincian galian, muatan ritase, kendala lapangan, atau catatan foreman..." placeholder="Keterangan rincian galian, muatan ritase, kendala lapangan, atau catatan foreman..."
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] transition resize-none"></textarea> class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] transition resize-none"></textarea>
</div> </div>
<label class="block text-xs font-bold text-slate-800 mb-1.5">
Rincian Tugas / Catatan Pekerjaan <span class="text-slate-400 font-normal">(Opsional)</span>
</label>
<textarea name="task_description"
id="editTaskDescription"
rows="2"
placeholder="Keterangan rincian galian, muatan ritase, kendala lapangan, atau catatan foreman..."
class="w-full text-xs px-3.5 py-2 rounded-xl border border-slate-200 bg-white text-slate-800 placeholder-slate-400 focus:outline-none focus:border-[#1b5e20] transition resize-none"></textarea>
</div>
<!-- Tombol Submit Edit --> <!-- Tombol Submit Edit -->
<div class="flex items-center justify-end space-x-2 pt-2 border-t border-slate-100"> <div class="flex items-center justify-end space-x-2 pt-2 border-t border-slate-100">
@@ -1135,6 +1085,9 @@
const startMeter = document.getElementById('addStartMeter'); const startMeter = document.getElementById('addStartMeter');
if (startMeter) startMeter.value = ''; if (startMeter) startMeter.value = '';
const startTime = document.getElementById('addStartTime');
if (startTime) startTime.value = '08:00';
modal.classList.remove('hidden'); modal.classList.remove('hidden');
modal.style.display = 'block'; modal.style.display = 'block';
} }
@@ -1156,9 +1109,10 @@
document.getElementById('detailUnit').textContent = `${ts.code} - ${ts.brand_type}`; document.getElementById('detailUnit').textContent = `${ts.code} - ${ts.brand_type}`;
document.getElementById('detailOperator').textContent = `${ts.operator_name} (NIK: ${ts.operator_nik})`; document.getElementById('detailOperator').textContent = `${ts.operator_name} (NIK: ${ts.operator_nik})`;
document.getElementById('detailMeter').textContent = `${ts.start_meter} ${ts.meter_type}`; document.getElementById('detailMeter').textContent = `${ts.start_meter} ${ts.meter_type}`;
document.getElementById('detailHours').textContent = ts.operating_hours && ts.operating_hours !== '0,0' ? `${ts.operating_hours} ${ts.meter_type}` : '-'; const detailStartTimeEl = document.getElementById('detailStartTime');
document.getElementById('detailStandbyBreakdown').textContent = `Standby: ${ts.standby_hours}h | Breakdown: ${ts.breakdown_hours}h`; if (detailStartTimeEl) {
document.getElementById('detailFuel').textContent = ts.fuel_liters && ts.fuel_liters !== '-' ? `${ts.fuel_liters} L` : '-'; detailStartTimeEl.textContent = ts.start_time ? (ts.start_time.substring(0, 5) + ' WIB') : '08:00 WIB';
}
document.getElementById('detailLocation').textContent = ts.location; document.getElementById('detailLocation').textContent = ts.location;
document.getElementById('detailActivity').textContent = ts.activity_type; document.getElementById('detailActivity').textContent = ts.activity_type;
document.getElementById('detailTask').textContent = ts.task_description !== '-' ? `"${ts.task_description}"` : '-'; document.getElementById('detailTask').textContent = ts.task_description !== '-' ? `"${ts.task_description}"` : '-';
@@ -1236,12 +1190,14 @@
// Format tanggal YYYY-MM-DD // Format tanggal YYYY-MM-DD
const d = ts.date ? ts.date.split('T')[0] : ''; const d = ts.date ? ts.date.split('T')[0] : '';
document.getElementById('editDate').value = d; document.getElementById('editDate').value = d;
const startTimeInput = document.getElementById('editStartTime');
if (startTimeInput) {
startTimeInput.value = ts.start_time ? ts.start_time.substring(0, 5) : '08:00';
}
document.getElementById('editShift').value = ts.shift || 'Shift Siang'; document.getElementById('editShift').value = ts.shift || 'Shift Siang';
document.getElementById('editMeterType').value = ts.meter_type || 'HM'; document.getElementById('editMeterType').value = ts.meter_type || 'HM';
document.getElementById('editStartMeter').value = ts.start_meter; document.getElementById('editStartMeter').value = ts.start_meter;
document.getElementById('editStandbyHours').value = ts.standby_hours || 0;
document.getElementById('editBreakdownHours').value = ts.breakdown_hours || 0;
document.getElementById('editActivityType').value = ts.activity_type; document.getElementById('editActivityType').value = ts.activity_type;
document.getElementById('editStatus').value = ts.status || 'Operation'; document.getElementById('editStatus').value = ts.status || 'Operation';
@@ -120,6 +120,7 @@ class QmaSupportTimesheetTest extends TestCase
'vehicle_code' => 'EX01', // Diketik langsung 'vehicle_code' => 'EX01', // Diketik langsung
'operator_id' => $this->operator->id, 'operator_id' => $this->operator->id,
'date' => Carbon::today()->toDateString(), 'date' => Carbon::today()->toDateString(),
'start_time' => '08:15',
'shift' => 'Shift Siang', 'shift' => 'Shift Siang',
'meter_type' => 'HM', 'meter_type' => 'HM',
'start_meter' => 1265.50, // Odometer awal saja 'start_meter' => 1265.50, // Odometer awal saja
@@ -147,6 +148,10 @@ class QmaSupportTimesheetTest extends TestCase
'status' => 'Operation', 'status' => 'Operation',
]); ]);
$saved = UnitSupportTimesheet::where('vehicle_id', $this->supportUnit->id)->first();
$this->assertNotNull($saved);
$this->assertStringStartsWith('08:15', (string) $saved->start_time);
// Verifikasi odometer kendaraan terupdate ke start_meter terbaru // Verifikasi odometer kendaraan terupdate ke start_meter terbaru
$this->supportUnit->refresh(); $this->supportUnit->refresh();
$this->assertEquals(1265.50, (float) $this->supportUnit->current_km); $this->assertEquals(1265.50, (float) $this->supportUnit->current_km);
@@ -275,6 +280,7 @@ class QmaSupportTimesheetTest extends TestCase
'vehicle_id' => $this->supportUnit->id, 'vehicle_id' => $this->supportUnit->id,
'operator_id' => $this->operator->id, 'operator_id' => $this->operator->id,
'date' => Carbon::today()->toDateString(), 'date' => Carbon::today()->toDateString(),
'start_time' => '07:45',
'shift' => 'Shift 2 (Malam)', 'shift' => 'Shift 2 (Malam)',
'meter_type' => 'HM', 'meter_type' => 'HM',
'start_meter' => 1250.00, 'start_meter' => 1250.00,
@@ -293,6 +299,7 @@ class QmaSupportTimesheetTest extends TestCase
$timesheet->refresh(); $timesheet->refresh();
$this->assertEquals(9.50, (float) $timesheet->operating_hours); $this->assertEquals(9.50, (float) $timesheet->operating_hours);
$this->assertEquals('Shift 2 (Malam)', $timesheet->shift); $this->assertEquals('Shift 2 (Malam)', $timesheet->shift);
$this->assertStringStartsWith('07:45', (string) $timesheet->start_time);
$this->assertEquals('Vertical Shaft', $timesheet->location); $this->assertEquals('Vertical Shaft', $timesheet->location);
$this->assertEquals('Standby', $timesheet->status); $this->assertEquals('Standby', $timesheet->status);
} }