From a5f78d94e30bd858fb5589ad718af268277380d4 Mon Sep 17 00:00:00 2001 From: braisab Date: Mon, 25 Apr 2022 11:04:59 +0200 Subject: [PATCH] [REF] pms_api_rest: changed the number of messages in the service by the message_needaction_counter field --- pms_api_rest/services/pms_calendar_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms_api_rest/services/pms_calendar_service.py b/pms_api_rest/services/pms_calendar_service.py index dd6e0b56c..9c809ee65 100644 --- a/pms_api_rest/services/pms_calendar_service.py +++ b/pms_api_rest/services/pms_calendar_service.py @@ -74,7 +74,7 @@ class PmsCalendarService(Component): == line.date, totalPrice=line.reservation_id.price_total, pendingPayment=line.reservation_id.folio_pending_amount, - numNotifications=len(line.reservation_id.message_ids), + numNotifications=line.reservation_id.message_needaction_counter, adults=line.reservation_id.adults, nextLineSplitted=next_line_splitted, previousLineSplitted=previous_line_splitted,