mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms_api_rest: fix parameters in occupandy sql statement and name it
This commit is contained in:
committed by
Darío Lodeiros
parent
cac8580073
commit
215ee18a80
@@ -93,7 +93,7 @@ class PmsDashboardServices(Component):
|
||||
|
||||
self.env.cr.execute(
|
||||
f"""
|
||||
SELECT CEIL(l.num * 100.00 / tr.num_total_rooms)
|
||||
SELECT CEIL(l.num * 100.00 / tr.num_total_rooms) AS occupancy
|
||||
FROM
|
||||
(
|
||||
SELECT COUNT(1) num_total_rooms
|
||||
@@ -112,8 +112,8 @@ class PmsDashboardServices(Component):
|
||||
) l
|
||||
""",
|
||||
(
|
||||
date_occupancy,
|
||||
pms_dashboard_search_param.pmsPropertyId,
|
||||
date_occupancy,
|
||||
pms_dashboard_search_param.pmsPropertyId,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user