[IMP]pms_api_rest: fix action_cancel reservation and service name none

This commit is contained in:
Darío Lodeiros
2024-05-22 09:31:43 +02:00
parent 280b240937
commit 99ba64c332
2 changed files with 2 additions and 2 deletions

View File

@@ -769,7 +769,7 @@ class PmsFolioService(Component):
force_write_blocked=True if external_app else False,
)._compute_board_service_room_id()
if reservation.stateCode == "cancel":
reservation.action_cancel()
reservation_record.action_cancel()
pms_folio_info.transactions = self.normalize_payments_structure(
pms_folio_info, folio
)

View File

@@ -483,7 +483,7 @@ class PmsReservationService(Component):
PmsServiceInfo(
id=service.id,
reservationId=service.reservation_id,
name=service.name,
name=service.name or service.product_id.name,
productId=service.product_id.id,
quantity=service.product_qty,
priceTotal=round(service.price_total, 2),