mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: round daily billing headers
This commit is contained in:
committed by
Darío Lodeiros
parent
0c79bd3b47
commit
3153ef4f83
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user