From a772290c7737fb9b440b80d427e2b657ed19ef1a Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Wed, 19 Oct 2022 17:54:55 +0200 Subject: [PATCH] [FIX] pms-api-rest: fix patch reservation update room type id --- pms_api_rest/services/pms_reservation_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pms_api_rest/services/pms_reservation_service.py b/pms_api_rest/services/pms_reservation_service.py index a4f9dd2dd..ebfa0b037 100644 --- a/pms_api_rest/services/pms_reservation_service.py +++ b/pms_api_rest/services/pms_reservation_service.py @@ -199,6 +199,8 @@ class PmsReservationService(Component): reservation.confirm() if reservation_data.toCheckout is not None and reservation_data.toCheckout: reservation.action_reservation_checkout() + if reservation_data.roomTypeId: + reservation.room_type_id = reservation_data.roomTypeId reservation_vals = self._create_vals_from_params( reservation_vals, reservation_data