Skip to content

Commit

Permalink
[IMP]pms_api_rest: added folioId in calendar datamodel and service
Browse files Browse the repository at this point in the history
  • Loading branch information
braisab committed May 6, 2022
1 parent bc24036 commit 7d64dd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pms_api_rest/datamodels/pms_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class PmsCalendarInfo(Datamodel):
splitted = fields.Boolean(required=False, allow_none=True)
partnerId = fields.Integer(required=False, allow_none=True)
partnerName = fields.String(required=False, allow_none=True)
folioId = fields.Integer(required=False, allow_none=True)
reservationId = fields.Integer(required=False, allow_none=True)
reservationName = fields.String(required=False, allow_none=True)
reservationType = fields.String(required=False, allow_none=True)
Expand Down
1 change: 1 addition & 0 deletions pms_api_rest/services/pms_calendar_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_calendar(self, calendar_search_param):
splitted=line.reservation_id.splitted,
partnerId=line.reservation_id.partner_id.id or None,
partnerName=line.reservation_id.partner_name or None,
folioId=line.reservation_id.folio_id,
reservationId=line.reservation_id,
reservationName=line.reservation_id.name,
reservationType=line.reservation_id.reservation_type,
Expand Down

0 comments on commit 7d64dd5

Please sign in to comment.