From dc7e1a6f6d988eb05d9f98b606d23f5a5ecb361a Mon Sep 17 00:00:00 2001 From: Pablo Date: Wed, 7 Aug 2019 10:13:06 +0200 Subject: [PATCH] [FIX] Adjust Board Services price with OTA capacity in WuBook --- .../models/hotel_room_type/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py b/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py index 757a12380..c6eb2c00b 100644 --- a/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py +++ b/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py @@ -23,7 +23,7 @@ class HotelRoomTypeExporter(Component): boards.update( {board.channel_service: { 'dtype': 2 if board.price_type == 'fixed' else 1, - 'value': board.amount}} + 'value': board.amount * binding.ota_capacity}} ) and board.channel_service return self.backend_adapter.modify_room( binding.external_id, @@ -59,7 +59,7 @@ class HotelRoomTypeExporter(Component): boards.update( {board.channel_service: { 'dtype': 2 if board.price_type == 'fixed' else 1, - 'value': board.amount}} + 'value': board.amount * binding.ota_capacity}} ) and board.channel_service external_id = self.backend_adapter.create_room( short_code,