mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] loop through all days
This commit is contained in:
@@ -95,8 +95,8 @@ class HotelReservationImporter(Component):
|
|||||||
wndate = datetime.strptime(
|
wndate = datetime.strptime(
|
||||||
brday['day'],
|
brday['day'],
|
||||||
DEFAULT_WUBOOK_DATE_FORMAT
|
DEFAULT_WUBOOK_DATE_FORMAT
|
||||||
).replace(tzinfo=tz.gettz('UTC'))
|
).replace(tzinfo=tz.gettz('UTC')).date()
|
||||||
if dates_checkin[0] >= wndate <= (dates_checkout[0] - timedelta(days=1)):
|
if dates_checkin[0].date() <= wndate < dates_checkout[0].date():
|
||||||
amount_day_tax = 0
|
amount_day_tax = 0
|
||||||
if not tax_inclusive:
|
if not tax_inclusive:
|
||||||
price_subtotal = book['amount'] - broom['ancillary']['taxes']
|
price_subtotal = book['amount'] - broom['ancillary']['taxes']
|
||||||
|
|||||||
Reference in New Issue
Block a user