From 3153ef4f838cc84493f5ad7ee0040034d16b7c2e Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Wed, 28 Jun 2023 11:50:21 +0200 Subject: [PATCH] [FIX] pms-api-rest: round daily billing headers --- pms_api_rest/services/pms_calendar_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pms_api_rest/services/pms_calendar_service.py b/pms_api_rest/services/pms_calendar_service.py index ce6eb5db5..51bdb6ec6 100644 --- a/pms_api_rest/services/pms_calendar_service.py +++ b/pms_api_rest/services/pms_calendar_service.py @@ -361,7 +361,7 @@ class PmsCalendarService(Component): f""" SELECT d.date, bool_or(l.overbooking) overbooking, - SUM(l.price_day_total) daily_billing, + CEIL(SUM(l.price_day_total)) daily_billing, tr.num_total_rooms - ( @@ -373,7 +373,7 @@ class PmsCalendarService(Component): AND occupies_availability = true AND room_id IN %s ) free_rooms, - ceil(( + CEIL(( SELECT COUNT(1) FROM pms_reservation_line l INNER JOIN pms_reservation r ON r.id = l.reservation_id