[FIX] Wrong Fix. men is used for _all_ adults in the booked rooms

This commit is contained in:
Pablo
2019-03-18 10:23:05 +01:00
parent a1c472aaa1
commit 349a71922f

View File

@@ -99,8 +99,6 @@ class HotelReservationImporter(Component):
split_booking, dates_checkin, dates_checkout, real_checkin, real_checkout, book):
is_cancellation = book['status'] in WUBOOK_STATUS_BAD
tax_inclusive = True
# men = Number of adults (when not defined, equal to -1)
persons = book.get('men', -1) > -1 and book.get('men') or room_type_bind.ota_capacity
# Dates
real_checkin_str = real_checkin.strftime(
DEFAULT_SERVER_DATETIME_FORMAT)