From 7f6f404449a70e292067b1662e4afc93d47c414c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Mon, 30 Jan 2023 12:25:14 +0100 Subject: [PATCH] [IMP]pms_api_rest: PATCH reservation check room type id value --- pms_api_rest/services/pms_reservation_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pms_api_rest/services/pms_reservation_service.py b/pms_api_rest/services/pms_reservation_service.py index 799023aa5..5d558bb8d 100644 --- a/pms_api_rest/services/pms_reservation_service.py +++ b/pms_api_rest/services/pms_reservation_service.py @@ -200,7 +200,10 @@ class PmsReservationService(Component): reservation.confirm() if reservation_data.toCheckout is not None and reservation_data.toCheckout: reservation.action_reservation_checkout() - if reservation_data.roomTypeId: + if ( + reservation_data.roomTypeId + and reservation.room_type_id.id != reservation_data.roomTypeId + ): reservation.room_type_id = reservation_data.roomTypeId reservation_vals = self._create_vals_from_params(