[FIX] pms-api-rest: num. services, amenities, round(discount), cancelation rule.

This commit is contained in:
miguelpadin
2022-07-12 10:35:44 +02:00
committed by Darío Lodeiros
parent f661b67a4a
commit c87c5153ef
5 changed files with 11 additions and 6 deletions

View File

@@ -266,10 +266,13 @@ class PmsFolioService(Component):
allowedCheckout=reservation.allowed_checkout,
splitted=reservation.splitted,
priceTotal=reservation.price_room_services_set,
servicesCount=len(
# TODO: REVIEW IF THIS OR QTY OF EACH ONE
servicesCount=sum(
reservation.service_ids.filtered(
lambda x: not x.is_board_service
)
.mapped("product_qty")
),
)
)