Added feature occupancy wise search

This commit is contained in:
shreesh arora
2022-03-11 17:19:37 +05:30
committed by Shreesh Arora
parent 2753f34338
commit 366950d2d7
91 changed files with 9230 additions and 2147 deletions

View File

@@ -850,7 +850,7 @@ class AdminStatsControllerCore extends AdminStatsTabController
public static function getGuestsByDate($date, $idHotel = false)
{
return Db::getInstance()->getRow(
'SELECT SUM(hbd.`adult`) AS `adults`, SUM(hbd.`children`) AS `children`
'SELECT SUM(hbd.`adult`) AS `adult`, SUM(hbd.`children`) AS `children`
FROM `'._DB_PREFIX_.'htl_booking_detail` hbd
WHERE hbd.`is_refunded` = 0 AND hbd.`is_back_order` = 0
AND hbd.`date_from` BETWEEN "'.pSQL($date).' 00:00:00" AND "'.pSQL($date).' 23:59:59"'.