Skip to content

Commit

Permalink
[IMP]connector_pms: Blocked False in Website Engine reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Nov 12, 2024
1 parent 8e2bac8 commit 306aa2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions connector_pms_wubook/models/pms_folio/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def _reorg_folio_data(self, values):
"rate_id": room_rate_id,
"customer_notes": customer_notes,
"lines": lines,
"id_channel": id_channel,
}
)
value["reservations"] = reservations
Expand Down
7 changes: 6 additions & 1 deletion connector_pms_wubook/models/pms_reservation/mapper_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ class ChannelWubookPmsReservationMapperImport(Component):
@only_create
@mapping
def blocked(self, record):
return {"blocked": True}
# Block False if the reservation origin is from the Wubook
# True if the reservation origin is from the OTA
if record["id_channel"] == 0:
return {"blocked": False}
else:
return {"blocked": True}

@only_create
@mapping
Expand Down

0 comments on commit 306aa2b

Please sign in to comment.