diff --git a/app/Http/Controllers/Assets/AssetCheckinController.php b/app/Http/Controllers/Assets/AssetCheckinController.php index 4ac52d407d..3ebd777865 100644 --- a/app/Http/Controllers/Assets/AssetCheckinController.php +++ b/app/Http/Controllers/Assets/AssetCheckinController.php @@ -107,8 +107,8 @@ class AssetCheckinController extends Controller } $checkin_at = date('Y-m-d H:i:s'); - if (($request->filled('checkout_at')) && ($request->get('checkin_at') != date('Y-m-d'))) { - $checkin_at = $request->get('checkout_at'); + if (($request->filled('checkin_at')) && ($request->get('checkin_at') != date('Y-m-d'))) { + $checkin_at = $request->get('checkin_at'); } if(!empty($asset->licenseseats->all())){