[IMP] pms_api_rest: add ubication in room datamodel and service

This commit is contained in:
Sara
2022-05-18 16:54:37 +02:00
committed by Darío Lodeiros
parent f02ac4c50c
commit 18428a46cf
2 changed files with 2 additions and 0 deletions

View File

@@ -18,3 +18,4 @@ class PmsRoomInfo(Datamodel):
capacity = fields.Integer(required=False, allow_none=True)
shortName = fields.String(required=False, allow_none=True)
roomTypeClassId = fields.Integer(required=False, allow_none=True)
ubicationId = fields.Integer(required=False, allow_none=True)

View File

@@ -52,6 +52,7 @@ class PmsRoomService(Component):
capacity=room.capacity,
shortName=room.short_name,
roomTypeClassId=room.room_type_id.class_id,
ubicationId=room.ubication_id,
)
)
return result_rooms