Fixed: getting validation issue if reallocation is done from Book Now page from back-office.

This commit is contained in:
Sumit Panwar
2024-10-07 12:17:24 +05:30
parent 6207d817d8
commit 8fafdebbbb

View File

@@ -198,7 +198,7 @@ class AdminHotelRoomsBookingController extends ModuleAdminController
$this->errors[] = $this->l('Selected room is not available for reallocation.');
} elseif (!in_array($idRoomToReallocate, array_column($availableRooms, 'id_room'))) {
$this->errors[] = $this->l('Selected room is not available for reallocation.');
} elseif (!Validate::isPrice($priceDiff)) {
} elseif (!Validate::isFloat($priceDiff)) {
$this->errors[] = $this->l('Invalid price difference of the room types.');
}
} else {