mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Adjust Board Services price with OTA capacity in WuBook
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user