[FIX] Adjust Board Services price with OTA capacity in WuBook

This commit is contained in:
Pablo
2019-08-07 10:13:06 +02:00
parent 083f20f278
commit 92920b3e3f

View File

@@ -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,