Fix refund rules on Guest detail page

This commit is contained in:
Abhishek Kumar
2024-03-17 12:05:22 +05:30
parent dc254cf8fa
commit 23cf1f353c
3 changed files with 13 additions and 0 deletions

View File

@@ -557,6 +557,9 @@ class GuestTrackingControllerCore extends FrontController
$objHotelBranchInformation = new HotelBranchInformation($idHotel, $this->context->language->id);
$hotelAddressInfo = HotelBranchInformation::getAddress($idHotel);
$objHotelBranchRefundRules = new HotelBranchRefundRules();
$hotelRefundRules = $objHotelBranchRefundRules->getHotelRefundRules($idHotel, 0, 1);
// set order specific values
$order->total_convenience_fee_ti = $total_convenience_fee_ti;
$order->total_convenience_fee_te = $total_convenience_fee_te;
@@ -571,6 +574,7 @@ class GuestTrackingControllerCore extends FrontController
$order->customerGuestDetail = $customerGuestDetail;
$order->obj_hotel_branch_information = $objHotelBranchInformation;
$order->hotel_address_info = $hotelAddressInfo;
$order->hotel_refund_rules = $hotelRefundRules;
//end
Hook::exec('actionOrderDetail', array('carrier' => $order->carrier, 'order' => $order));