[IMP] pms-api-rest: add reservation type to folio/x/reservations service

This commit is contained in:
miguelpadin
2024-02-15 14:46:27 +00:00
committed by Darío Lodeiros
parent e263fe1ce7
commit f722d5a2b1
2 changed files with 5 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ class PmsReservationShortInfo(Datamodel):
toAssign = fields.Boolean(required=False, allow_none=True)
overbooking = fields.Boolean(required=False, allow_none=True)
isBlocked = fields.Boolean(required=False, allow_none=True)
reservationType = fields.String(required=False, allow_none=True)
class PmsReservationInfo(Datamodel):

View File

@@ -560,7 +560,9 @@ class PmsFolioService(Component):
else 0,
toAssign=reservation.to_assign,
overbooking=reservation.overbooking,
isBlocked=reservation.blocked
isBlocked=reservation.blocked,
reservationType=reservation.reservation_type,
)
)