additional facilities removed

This commit is contained in:
azhar bhat
2026-07-16 13:12:55 +05:30
parent 5b4d65cbb8
commit 19565cdff5
108 changed files with 519 additions and 6416 deletions

View File

@@ -36,7 +36,6 @@ class AdminSearchControllerCore extends AdminController
'AdminFeatures' => 1,
'AdminOrders' => 1,
'AdminOrderRefundRules' => 1,
'AdminRoomTypeGlobalDemand' => 1,
'AdminGroups' => 1,
'AdminHotelFeatures' => 1,
'AdminCustomers' => 1,
@@ -191,7 +190,6 @@ class AdminSearchControllerCore extends AdminController
if (!$searchType) {
$this->searchAddress();
$this->searchHotelFeatures();
$this->searchAdditionalFacilities();
$this->searchRefundRules();
}
}
@@ -450,29 +448,6 @@ class AdminSearchControllerCore extends AdminController
}
}
public function searchAdditionalFacilities()
{
if (class_exists('HotelRoomTypeGlobalDemand')) {
if (isset($this->controllerAccess['AdminRoomTypeGlobalDemand']) && $this->controllerAccess['AdminRoomTypeGlobalDemand']) {
$objHotelRoomTypeGlobalDemands = new HotelRoomTypeGlobalDemand();
if ($globalDemads = $objHotelRoomTypeGlobalDemands->searchByName($this->query, $this->context->language->id)) {
foreach ($globalDemads as $key => $demand) {
if (!(int) $globalDemads[$key]['price']) {
$globalDemads[$key]['price'] = $globalDemads[$key]['option_price'];
}
$globalDemads[$key]['per_day_price_calc'] = $this->l('No');
if ($globalDemads[$key]['price_calc_method'] == HotelRoomTypeGlobalDemand::WK_PRICE_CALC_METHOD_EACH_DAY) {
$globalDemads[$key]['per_day_price_calc'] = $this->l('Yes');
}
}
$this->_list['global_demands'] = $globalDemads;
}
}
}
}
public function searchRefundRules()
{
if (class_exists('HotelOrderRefundRules')) {
@@ -559,18 +534,6 @@ class AdminSearchControllerCore extends AdminController
);
}
protected function initGlobalDemandList()
{
$this->show_toolbar = false;
$this->fields_list['global_demands'] = array(
'id_global_demand' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'name' => array('title' => $this->l('Name')),
'option_name' => array('title' => $this->l('Advance Option Name')),
'price' => array('title' => $this->l('Price'), 'type' => 'price', 'currency' => true),
'per_day_price_calc' => array('title' => $this->l('Per day price calculation'))
);
}
protected function initRefundRuleList()
{
$this->show_toolbar = false;
@@ -980,27 +943,6 @@ class AdminSearchControllerCore extends AdminController
$this->tpl_view_vars['groups'] = $view;
}
if (isset($this->_list['global_demands']) && count($this->_list['global_demands'])) {
$view = '';
$this->initGlobalDemandList();
$helper = new HelperList();
$helper->shopLinkType = '';
$helper->simple_header = true;
$helper->identifier = 'id_global_demand';
$helper->actions = array('edit');
$helper->show_toolbar = false;
$helper->table = 'htl_room_type_global_demand';
$helper->currentIndex = $this->context->link->getAdminLink('AdminRoomTypeGlobalDemand', false);
$helper->token = Tools::getAdminTokenLite('AdminRoomTypeGlobalDemand');
if ($this->_list['global_demands']) {
$view = $helper->generateList($this->_list['global_demands'], $this->fields_list['global_demands']);
}
$this->tpl_view_vars['num_global_demands'] = count($this->_list['global_demands']);
$this->tpl_view_vars['global_demands'] = $view;
}
if (isset($this->_list['refund_rules']) && count($this->_list['refund_rules'])) {
$view = '';
$this->initRefundRuleList();