[IMP]pms_api_rest: added to_assign in fetch_folio_reservations

This commit is contained in:
braisab
2023-05-29 12:46:05 +02:00
committed by Darío Lodeiros
parent 1f43c966e2
commit 446e55d4a5
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ class PmsReservationShortInfo(Datamodel):
pricelistId = fields.Integer(required=False, allow_none=True)
nights = fields.Integer(required=False, allow_none=True)
numServices = fields.Integer(required=False, allow_none=True)
toAssign = fields.Boolean(required=False, allow_none=True)
class PmsReservationInfo(Datamodel):

View File

@@ -483,6 +483,7 @@ class PmsFolioService(Component):
numServices= len(reservation.service_ids)
if reservation.service_ids
else 0,
toAssign=reservation.to_assign,
)
)