fix
This commit is contained in:
parent
5cdfaafe03
commit
49b681566d
|
|
@ -266,11 +266,11 @@ class TrackingController extends Controller
|
|||
->where('status', 'check in');
|
||||
|
||||
if ($startDate && $endDate) {
|
||||
$trackingData->whereBetween('updated_at', [$startDate, $endDate . ' 23:59:59']);
|
||||
$trackingData->whereBetween('created_at', [$startDate, $endDate . ' 23:59:59']);
|
||||
} elseif ($startDate) {
|
||||
$trackingData->where('updated_at', '>=', $startDate);
|
||||
$trackingData->where('created_at', '>=', $startDate);
|
||||
} elseif ($endDate) {
|
||||
$trackingData->where('updated_at', '<=', $endDate . ' 23:59:59');
|
||||
$trackingData->where('created_at', '<=', $endDate . ' 23:59:59');
|
||||
}
|
||||
|
||||
$onTimeMorning = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue