Merge pull request #2756 from jitendra-webkul/1.0

Fixed undefind variable issue in rental booking helper
This commit is contained in:
Jitendra Singh 2020-03-24 16:44:10 +05:30 committed by GitHub
commit adc75554a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ class RentalSlot extends Booking
return $isExpired;
} else {
$currentTime = Carbon::now();
$requestedFromDate = Carbon::createFromTimeString($cartItem['additional']['booking']['date_from'] . " 00:00:00");
$requestedToDate = Carbon::createFromTimeString($cartItem['additional']['booking']['date_to'] . " 23:59:59");