Merge branch 'Qloapps:develop' into gli-3097
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -516,4 +516,4 @@ function initTooltip($target, contentFn, items) {
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -302,11 +302,11 @@
|
||||
<div class="col-lg-6">
|
||||
{if isset($hotels) && $hotels}
|
||||
<div class="panel">
|
||||
<h3>{l s='Hotel Permissions'}</h3>
|
||||
<h3>{l s='Property Permissions'}</h3>
|
||||
<table class="table" id="table_hotel_{$profile.id_profile}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Hotel'}</th>
|
||||
<th>{l s='Property'}</th>
|
||||
<th>
|
||||
<input type="checkbox"{if $access_edit == 1} class="changeHotelAccess" data-rel="-1||all||{$profile.id_profile}"{else} disabled="disabled"{/if}/>
|
||||
{l s='All'}
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
<td>{dateFormat date=$room['date_from'] full=$is_full_date} - {dateFormat date=$room['date_to'] full=$is_full_date}</td>
|
||||
<td>
|
||||
<span>
|
||||
{if $room['adults']}{$room['adults']}{/if} {if $room['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$room['children']}}, {$room['children']} {if $room['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
{if $stay['adults']}{$stay['adults']}{/if} {if $stay['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if {$stay['children']}}, {$stay['children']} {if $stay['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
</span>
|
||||
</td>
|
||||
<td>{displayWtPriceWithCurrency price=$room['feature_price_tax_excl'] currency=$currency}</td>
|
||||
@@ -131,7 +131,7 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active" ><a href="#room_type_service_product_desc_{$room['id']}" aria-controls="services" role="tab" data-toggle="tab">{l s='Services'}</a></li>
|
||||
<li role="presentation" class="active" ><a href="#room_type_service_product_desc_{$stay['id']}" aria-controls="services" role="tab" data-toggle="tab">{l s='Services'}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content panel">
|
||||
{if isset($room['selected_services']) && $room['selected_services']}
|
||||
|
||||
@@ -77,9 +77,9 @@
|
||||
var product_type_simple = {Product::PTYPE_SIMPLE|intval};
|
||||
|
||||
var SELLING_PREFERENCE_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_HOTEL_STANDALONE = {Product::SELLING_PREFERENCE_HOTEL_STANDALONE|intval};
|
||||
var SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_STANDALONE = {Product::SELLING_PREFERENCE_STANDALONE|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL = {Product::SELLING_PREFERENCE_WITH_HOTEL|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_WITH_STANDALONE = {Product::SELLING_PREFERENCE_WITH_STANDALONE|intval};
|
||||
|
||||
var price_addition_type_with_room = {Product::PRICE_ADDITION_TYPE_WITH_ROOM|intval};
|
||||
var price_addition_type_independent = {Product::PRICE_ADDITION_TYPE_INDEPENDENT|intval};
|
||||
|
||||
@@ -230,25 +230,40 @@
|
||||
</script>
|
||||
</div>
|
||||
{* Code For Standard product working *}
|
||||
{* <div class="form-group" id="global_product_type_container">
|
||||
<label class="control-label col-lg-3" for="selling_preference_type">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select whether this product will be sold with room type or as an standalone product'}">
|
||||
{l s='Product selling preference'}
|
||||
<span>
|
||||
{* <div class="form-group " id="global_product_type_container">
|
||||
<label class="control-label required col-lg-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select how this product will be sold: with room types, with hotels, as a standalone product, or in a combination of these options.'}">
|
||||
{l s='Buying Option'}
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-lg-4">
|
||||
<select name="selling_preference_type" id="selling_preference_type">
|
||||
<option value="{Product::SELLING_PREFERENCE_WITH_ROOM_TYPE}" {if $product->selling_preference_type == Product::SELLING_PREFERENCE_WITH_ROOM_TYPE}selected="selected"{/if} >{l s='Sell with room types'}</option>
|
||||
<option value="{Product::SELLING_PREFERENCE_HOTEL_STANDALONE}" {if $product->selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE}selected="selected"{/if} >{l s='Sell with hotels'}</option>
|
||||
<option value="{Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}" {if $product->selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}selected="selected"{/if} >{l s='Sell with hotels and room types'}</option>
|
||||
<option value="{Product::SELLING_PREFERENCE_STANDALONE}" {if $product->selling_preference_type == Product::SELLING_PREFERENCE_STANDALONE}selected="selected"{/if} >{l s='Sell as standalone product'}</option>
|
||||
</select>
|
||||
<div class="col-lg-9">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sp_with_room_type" name="selling_preference_type[]" value="{Product::SELLING_PREFERENCE_WITH_ROOM_TYPE}"
|
||||
{if Product::isSellableWithRoomType($product->id) }checked="checked"{/if}>
|
||||
{l s='Sell With Room Type'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sp_with_hotel" name="selling_preference_type[]" value="{Product::SELLING_PREFERENCE_WITH_HOTEL}"
|
||||
{if Product::isSellableWithHotel($product->id)}checked="checked"{/if}>
|
||||
{l s='Sell With Hotel'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="sp_standalone" name="selling_preference_type[]" value="{Product::SELLING_PREFERENCE_WITH_STANDALONE}"
|
||||
{if Product::isSellableAsStandalone($product->id) }checked="checked"{/if}>
|
||||
{l s='Sell With Standalone'}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div> *}
|
||||
<div class="form-group" id="associated_hotel_tree" {if ($product->selling_preference_type != Product::SELLING_PREFERENCE_HOTEL_STANDALONE && $product->selling_preference_type != Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE)}style="display:none;"{/if}>
|
||||
<div class="form-group" id="associated_hotel_tree" {if !Product::isSellableWithHotel($product->id)}style="display:none;"{/if}>
|
||||
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}</span></div>
|
||||
<label class="control-label col-lg-2" for="hotel_block">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select hotels for which this service will be available.'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select properties for which this service will be available.'}">
|
||||
{l s='Associated Hotels'}
|
||||
</span>
|
||||
</label>
|
||||
@@ -258,10 +273,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="associated_hotel_rooms_tree" {if ($product->selling_preference_type != Product::SELLING_PREFERENCE_WITH_ROOM_TYPE && $product->selling_preference_type != Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE && $product->selling_preference_type != 0)}style="display:none;"{/if}>
|
||||
<div class="form-group" id="associated_hotel_rooms_tree" {if !Product::isSellableWithRoomType($product->id) && $product->selling_preference_type != 0}style="display:none;"{/if}>
|
||||
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}</span></div>
|
||||
<label class="control-label col-lg-2" for="hotel_room_block">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select room type and hotels for which this service will be available.'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select Room type and properties for which this service will be available.'}">
|
||||
{l s='Associated Room Types'}
|
||||
</span>
|
||||
</label>
|
||||
@@ -271,7 +286,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="auto_add_to_cart_container" {if $product->selling_preference_type != Product::SELLING_PREFERENCE_WITH_ROOM_TYPE && $product->selling_preference_type != 0}style="display:none;"{/if}>
|
||||
<div class="form-group" id="auto_add_to_cart_container" {if !Product::isSellableWithRoomType($product->id) && $product->selling_preference_type != 0}style="display:none;"{/if}>
|
||||
<label class="control-label col-lg-3" for="">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='When enabled, this service will be added in cart for each associated Room type or Hotel when they are added in cart. Also auto added services will not be visible to customers.'}">
|
||||
{l s='Auto add to cart this product'}
|
||||
@@ -604,4 +619,11 @@
|
||||
<script type="text/javascript">
|
||||
hideOtherLanguage({$default_form_language});
|
||||
var missing_product_name = '{l s='Please fill product name input field' js=1}';
|
||||
var SELLING_PREFERENCE_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL = {Product::SELLING_PREFERENCE_WITH_HOTEL|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_WITH_STANDALONE = {Product::SELLING_PREFERENCE_WITH_STANDALONE|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_STANDALONE = {Product::SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_STANDALONE|intval};
|
||||
var SELLING_PREFERENCE_WITH_STANDALONE_AND_WITH_ROOM_TYPE = {Product::SELLING_PREFERENCE_WITH_STANDALONE_AND_WITH_ROOM_TYPE|intval};
|
||||
var SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE_AND_WITH_STANDALONE = {Product::SELLING_PREFERENCE_WITH_HOTEL_AND_WITH_ROOM_TYPE_AND_WITH_STANDALONE|intval};
|
||||
</script>
|
||||
|
||||
@@ -210,19 +210,62 @@ $(document).ready(function () {
|
||||
</div>
|
||||
{if isset($pack) && $pack->isPack($product->id)}<p class="col-lg-9 col-lg-offset-3 help-block">{l s='The sum of prices of the products in the pack is %s%s%s' sprintf=[$currency->prefix,{toolsConvertPrice price=$pack->noPackPrice($product->id)|string_format:$priceDisplayPrecisionFormat},$currency->suffix]}</p>{/if}
|
||||
</div> *}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3" for="price_calculation_method">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select whether price for this service will be added for each day of the booking or price will be added to the entire date range of the booking'}">
|
||||
{l s='Price calculation method'}
|
||||
<span>
|
||||
</label>
|
||||
<div class="col-lg-4">
|
||||
<select name="price_calculation_method" id="price_calculation_method">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_BOOKING}" {if $product->price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_BOOKING}selected="selected"{/if} >{l s='Add price once for the booking range'}</option>
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_DAY}" {if $product->price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}selected="selected"{/if} >{l s='Add price for each day of booking'}</option>
|
||||
</select>
|
||||
<div class="form-group">
|
||||
<label class="control-label required col-lg-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Choose whether this price is added once for the whole booking range, or added again for each day of the booking.'}">
|
||||
{l s='Price calculation method'}
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-lg-3">
|
||||
<select id="pcm_type" name="price_calculation_type">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval}" {if !$product->price_calculation_method || $product->price_calculation_method == Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING}selected="selected"{/if}>{l s='Once for the booking range'}</option>
|
||||
<option value="0" {if $product->price_calculation_method && $product->price_calculation_method != Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING}selected="selected"{/if}>{l s='Select applicable days'}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" id="pcm_days_container" style="margin-top: 10px;{if !$product->price_calculation_method || $product->price_calculation_method == Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING} display:none;{/if}">
|
||||
<label class="control-label required col-lg-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select which booking days should be counted when calculating the service price.'}">
|
||||
{l s='Applied on: '}
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-lg-9">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkin" name="price_calculation_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKIN_DAY|intval}"
|
||||
{if $product->price_calculation_method & Product::PRICE_CALCULATION_METHOD_ON_CHECKIN_DAY}checked="checked"{/if}>
|
||||
{l s='Check-in day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkout" name="price_calculation_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKOUT_DAY|intval}"
|
||||
{if $product->price_calculation_method & Product::PRICE_CALCULATION_METHOD_ON_CHECKOUT_DAY}checked="checked"{/if}>
|
||||
{l s='Check-out day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_duringstay" name="price_calculation_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_DURING_STAY|intval}"
|
||||
{if $product->price_calculation_method & Product::PRICE_CALCULATION_METHOD_ON_DURING_STAY}checked="checked"{/if}>
|
||||
{l s='During-stay days'}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var togglePcmDays = function() {
|
||||
if ($('#pcm_type').val() == '{Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval}') {
|
||||
$('#pcm_days_container').hide();
|
||||
} else {
|
||||
$('#pcm_days_container').show();
|
||||
}
|
||||
};
|
||||
togglePcmDays();
|
||||
$('#pcm_type').on('change', togglePcmDays);
|
||||
});
|
||||
</script>
|
||||
{* As no use in QloApps currently so commented *}
|
||||
{* <div class="form-group">
|
||||
<div class="col-lg-1"><span class="pull-right">{include file="controllers/products/multishop/checkbox.tpl" field="unit_price" type="unit_price"}</span></div>
|
||||
|
||||
@@ -25,18 +25,17 @@
|
||||
<table class="table" id="customer_products_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="title_box">{l s='Image'}</th>
|
||||
<th><span class="title_box">{l s='Image'}</span></th>
|
||||
<th><span class="title_box">{l s='Name'}</span></th>
|
||||
<th><span class="title_box">{l s='Quantity'}</span></th>
|
||||
<th><span class="title_box">{l s='Price (Tax excl.)'}</span></th>
|
||||
<th><span class="title_box">{l s='Total Tax'}</span></th>
|
||||
<th><span class="title_box">{l s='Total Price (Tax incl.)'}</span></th>
|
||||
{if isset($refundReqProducts) && $refundReqProducts}
|
||||
<th><span class="title_box">{l s='Refund State'}</span></th>
|
||||
<th><span class="title_box">{l s='Refunded amount'}</span></th>
|
||||
<th><span class="title_box"><div>{l s='Refund'}</div><div>{l s='Refund requests'}</div></span></th>
|
||||
{/if}
|
||||
{if $can_edit}
|
||||
<th><span class="title_box">{l s='Actions'}</th>
|
||||
{if ($can_edit)}
|
||||
<th class="fixed-width-md center"><span class="title_box">{l s='Actions'}</span></th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -92,27 +91,19 @@
|
||||
</td>
|
||||
{if (isset($refundReqProducts) && $refundReqProducts)}
|
||||
<td>
|
||||
{if $product.id_service_product_order_detail|in_array:$refundReqProducts}
|
||||
{if $product.is_cancelled}
|
||||
<span class="badge badge-danger">{l s='Cancelled'}</span>
|
||||
{elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)}
|
||||
<span class="badge" style="background-color:{$product.refund_info.color|escape:'html':'UTF-8'}">{$product.refund_info.name|escape:'html':'UTF-8'}</span>
|
||||
{else}
|
||||
<span>--</span>
|
||||
{if $product.refund_count}
|
||||
{if $product.refund_amount}
|
||||
<p class="refunded_amount">
|
||||
{convertPriceWithCurrency price=$product.refund_amount currency=$currency->id}
|
||||
</p>
|
||||
{/if}
|
||||
<a href="{$link->getAdminLink('AdminOrderRefundRequests')|escape:'html':'UTF-8'}&id_order={$order->id|intval}&id_service_product_order_detail={$product.id_service_product_order_detail|intval}" class="badge badge-danger">{$product.refund_count}</a>
|
||||
{else}
|
||||
<span>--</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $product.is_refunded && isset($product.refund_info) && $product.refund_info}
|
||||
{convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id}
|
||||
{else}
|
||||
--
|
||||
<p>--</p>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{if ($can_edit && !$order->hasBeenDelivered())}
|
||||
{if ($can_edit)}
|
||||
<td class="room_invoice" style="display: none;">
|
||||
{if sizeof($invoices_collection)}
|
||||
<select name="product_invoice" class="edit_product_invoice">
|
||||
@@ -126,7 +117,7 @@
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
<td class="product_action">
|
||||
<td class="product_action center">
|
||||
{* edit/delete controls *}
|
||||
{if isset($refundReqProducts) && $refundReqProducts && $product.id_service_product_order_detail|in_array:$refundReqProducts && $product.is_cancelled}
|
||||
<button href="#" class="btn btn-default delete_product_line">
|
||||
@@ -190,7 +181,7 @@
|
||||
<tr>
|
||||
{assign var=colspan value=6}
|
||||
{if isset($refundReqProducts) && $refundReqProducts}
|
||||
{assign var=colspan value=($colspan+2)}
|
||||
{assign var=colspan value=($colspan+1)}
|
||||
{/if}
|
||||
{if ($can_edit)}
|
||||
{assign var=colspan value=($colspan+1)}
|
||||
|
||||
@@ -69,7 +69,6 @@
|
||||
</td>
|
||||
{if ($order->hasBeenPaid())}<td style="display:none;" class="productQuantity"></td>{/if}
|
||||
{if $display_warehouse}<td></td>{/if}
|
||||
{if ($order->hasBeenDelivered())}<td style="display:none;" class="productQuantity"></td>{/if}
|
||||
<td style="display:none;" class="productQuantity" id="add_normal_product_stock">0</td>
|
||||
<td style="display:none;" id="add_normal_product_total">{displayPrice price=0 currency=$currency->id}</td>
|
||||
<td style="display:none;" colspan="2">
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
<th>{l s='Resolve'}</th>
|
||||
</tr>
|
||||
{foreach from=$orderOverBookings item=data}
|
||||
{if !$data.is_refunded}
|
||||
<tr>
|
||||
<td>{$data['room_num']}</td>
|
||||
<td>{$data['room_type_name']}</td>
|
||||
@@ -87,7 +86,6 @@
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -124,32 +124,29 @@
|
||||
<td class="center">
|
||||
{convertPriceWithCurrency price=($data['total_room_price_ti']) currency=$currency->id}
|
||||
</td>
|
||||
<td>
|
||||
{if isset($htl_booking_statuses[$data.id_status])}
|
||||
<span class="badge" style="background-color:{$htl_booking_statuses[$data.id_status].color|escape:'html':'UTF-8'}">{$htl_booking_statuses[$data.id_status].name|escape:'html':'UTF-8'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{if (isset($refundReqBookings) && $refundReqBookings)}
|
||||
<td class="center">
|
||||
<p>
|
||||
{if $data.id|in_array:$refundReqBookings}
|
||||
{if $data.is_cancelled}
|
||||
<span class="badge badge-danger">{l s='Cancelled'}</span>
|
||||
{elseif isset($data.refund_info) && (!$data.refund_info.refunded || $data.refund_info.id_customization)}
|
||||
<span class="badge" style="background-color:{$data.refund_info.color|escape:'html':'UTF-8'}">{$data.refund_info.name|escape:'html':'UTF-8'}</span>
|
||||
{else}
|
||||
<span>--</span>
|
||||
{/if}
|
||||
{else}
|
||||
<span>--</span>
|
||||
{/if}
|
||||
</p>
|
||||
{if $data.is_refunded && isset($data.refund_info) && $data.refund_info}
|
||||
<p class="badge badge-success refunded_amount">
|
||||
{convertPriceWithCurrency price=$data.refund_info.refunded_amount currency=$currency->id}
|
||||
</p>
|
||||
{/if}
|
||||
{if $data.refund_count}
|
||||
{if $data.refund_amount}
|
||||
<p class="refunded_amount">
|
||||
{convertPriceWithCurrency price=$data.refund_amount currency=$currency->id}
|
||||
</p>
|
||||
{/if}
|
||||
<a href="{$link->getAdminLink('AdminOrderRefundRequests')|escape:'html':'UTF-8'}&id_order={$order->id|intval}&id_htl_booking={$data.id|intval}" target="_blank" class="badge badge-danger">{$data.refund_count}</a>
|
||||
{else}
|
||||
<p>--</p>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{if ($can_edit && !$order->hasBeenDelivered())}
|
||||
{if ($can_edit)}
|
||||
<td class="product_action center">
|
||||
<div class="btn-group pull-right">
|
||||
{if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_cancelled}
|
||||
{if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && ($data.id_status == $ROOM_STATUS_CANCELLED || $data.id_status == $ROOM_STATUS_NO_SHOW)}
|
||||
<button href="#" class="btn btn-default delete_room_line">
|
||||
<i class="icon-trash"></i>
|
||||
{l s='Delete'}
|
||||
@@ -163,15 +160,12 @@
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
{if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_refunded}
|
||||
{else}
|
||||
<li>
|
||||
<a href="#" class="open_room_status_form" data-id_hotel_booking_detail="{$data['id']}" data-id_order="{$data['id_order']}" data-id_status="{$data['id_status']}" data-id_room="{$data['id_room']}" data-date_from="{$data['date_from']|date_format:"%Y-%m-%d"}" data-date_to="{$data['date_to']|date_format:"%Y-%m-%d"}" data-check_in_time="{$data['check_in_time']}" data-check_out_time="{$data['check_out_time']}" data-check_in="{$data['check_in']}" data-check_out="{$data['check_out']}">
|
||||
<i class="icon-clock-o"></i>
|
||||
{l s='Room Status'}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<li>
|
||||
<a href="#" class="open_room_status_form" data-id_hotel_booking_detail="{$data['id']}" data-id_order="{$data['id_order']}" data-id_status="{$data['id_status']}" data-id_room="{$data['id_room']}" data-date_from="{$data['date_from']|date_format:"%Y-%m-%d"}" data-date_to="{$data['date_to']|date_format:"%Y-%m-%d"}" data-check_in_time="{$data['check_in_time']}" data-check_out_time="{$data['check_out_time']}" data-check_in="{$data['check_in']}" data-check_out="{$data['check_out']}">
|
||||
<i class="icon-clock-o"></i>
|
||||
{l s='Room Status'}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" onclick="BookingDocumentsModal.init({$data.id|intval}, this); return false;">
|
||||
<i class="icon-file-text"></i>
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
<th>{l s='Resolve'}</th>
|
||||
</tr>
|
||||
{foreach from=$resolvableOverBookings item=data}
|
||||
{if !$data.is_refunded}
|
||||
<tr>
|
||||
<td>{$data['room_num']}</td>
|
||||
<td>
|
||||
@@ -71,7 +70,6 @@
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<table class="table" id="customer_cart_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="center"><span ><p>{l s='Room'}</p></span></th>
|
||||
<th class="center"><span ><p>{l s='Unit'}</p></span></th>
|
||||
<th class="center"><span >{l s='Image'}</span></th>
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Booking check-in and check-out dates'}">{l s='Duration'}</span></th>
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Number of adults and children'}">{l s='Occupancy'}</span></th>
|
||||
@@ -37,10 +37,11 @@
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Total cost of extra services, auto added services and convenience fee for this room, excluding tax'}"><div>{l s='Extra Services'}</div><div>{l s='(Tax excl.)'}</div></span></th>
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Total tax applied on this room booking'}">{l s='Total Tax'}</span></th>
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Total price of the room including extra services/fees, tax included'}"><div>{l s='Total Price'}</div><div>{l s='(Tax incl.)'}</div></span></th>
|
||||
<th><span class="title_box">{l s='Room status'}</span></th>
|
||||
{if (isset($refundReqBookings) && $refundReqBookings)}
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Refund or cancellation status and refunded amount for this room booking'}">{l s='Refund'}</span></th>
|
||||
<th class="center"><span class="title_box help-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Refund or cancellation status and refunded amount for this room booking'}"><div>{l s='Refunds'}</div></span></th>
|
||||
{/if}
|
||||
{if (isset($can_edit) && $can_edit && !$order->hasBeenDelivered())}
|
||||
{if (isset($can_edit) && $can_edit)}
|
||||
<th class="fixed-width-md"><span class="title_box">{l s='Actions'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
|
||||
@@ -25,18 +25,17 @@
|
||||
<table class="table" id="customer_products_details">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="title_box">{l s='Image'}</th>
|
||||
<th><span class="title_box">{l s='Image'}</span></th>
|
||||
<th><span class="title_box">{l s='Name'}</span></th>
|
||||
<th><span class="title_box">{l s='Quantity'}</span></th>
|
||||
<th><span class="title_box">{l s='Price (Tax excl.)'}</span></th>
|
||||
<th><span class="title_box">{l s='Total Tax'}</span></th>
|
||||
<th><span class="title_box">{l s='Total Price (Tax incl.)'}</span></th>
|
||||
{if isset($refundReqProducts) && $refundReqProducts}
|
||||
<th><span class="title_box">{l s='Refund State'}</span></th>
|
||||
<th><span class="title_box">{l s='Refunded amount'}</span></th>
|
||||
<th><span class="title_box"><div>{l s='Refund'}</div><div>{l s='Refund requests'}</div></span></th>
|
||||
{/if}
|
||||
{if ($can_edit)}
|
||||
<th><span class="title_box">{l s='Actions'}</th>
|
||||
<th class="fixed-width-md center"><span class="title_box">{l s='Actions'}</span></th>
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -92,27 +91,20 @@
|
||||
</td>
|
||||
{if (isset($refundReqProducts) && $refundReqProducts)}
|
||||
<td>
|
||||
{if $product.id_service_product_order_detail|in_array:$refundReqProducts}
|
||||
{if $product.is_cancelled}
|
||||
<span class="badge badge-danger">{l s='Cancelled'}</span>
|
||||
{elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)}
|
||||
<span class="badge" style="background-color:{$product.refund_info.color|escape:'html':'UTF-8'}">{$product.refund_info.name|escape:'html':'UTF-8'}</span>
|
||||
{else}
|
||||
<span>--</span>
|
||||
{if $product.refund_count}
|
||||
{if $product.refund_amount}
|
||||
<p class="refunded_amount">
|
||||
{convertPriceWithCurrency price=$product.refund_amount currency=$currency->id}
|
||||
</p>
|
||||
{/if}
|
||||
<p>
|
||||
<a href="{$link->getAdminLink('AdminOrderRefundRequests')|escape:'html':'UTF-8'}&id_order={$order->id|intval}&id_service_product_order_detail={$product.id_service_product_order_detail|intval}" target="_blank" class="badge badge-danger">{$product.refund_count}</a>
|
||||
{else}
|
||||
<span>--</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{if $product.is_refunded && isset($product.refund_info) && $product.refund_info}
|
||||
{convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id}
|
||||
{else}
|
||||
--
|
||||
<p>--</p>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{if ($can_edit && !$order->hasBeenDelivered())}
|
||||
{if ($can_edit)}
|
||||
<td class="room_invoice" style="display: none;">
|
||||
{if sizeof($invoices_collection)}
|
||||
<select name="product_invoice" class="edit_product_invoice">
|
||||
@@ -126,7 +118,7 @@
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
<td class="product_action">
|
||||
<td class="product_action center">
|
||||
{* edit/delete controls *}
|
||||
{if isset($refundReqProducts) && $refundReqProducts && $product.id_service_product_order_detail|in_array:$refundReqProducts && $product.is_cancelled}
|
||||
<button href="#" class="btn btn-default delete_product_line">
|
||||
@@ -190,7 +182,7 @@
|
||||
<tr>
|
||||
{assign var=colspan value=6}
|
||||
{if isset($refundReqProducts) && $refundReqProducts}
|
||||
{assign var=colspan value=($colspan+2)}
|
||||
{assign var=colspan value=($colspan+1)}
|
||||
{/if}
|
||||
{if ($can_edit)}
|
||||
{assign var=colspan value=($colspan+1)}
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
var can_edit_booking_carts = {if isset($can_edit_booking_carts) && $can_edit_booking_carts}true{else}false{/if};
|
||||
var can_add_addresses = {if isset($can_add_addresses) && $can_add_addresses}true{else}false{/if};
|
||||
var admin_order_tab_link = "{$link->getAdminLink('AdminOrders')|addslashes}";
|
||||
var new_service_pcm_once_for_booking = {Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval};
|
||||
var changed_shipping_price = false;
|
||||
var shipping_price_selected_carrier = '';
|
||||
var current_index = '{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}';
|
||||
@@ -53,6 +54,13 @@
|
||||
var priceDisplayPrecision = {$smarty.const._PS_PRICE_DISPLAY_PRECISION_|intval};
|
||||
|
||||
$(document).ready(function() {
|
||||
$(document).on('change', '#add_new_room_services_form select[name="price_calculation_type"]', function() {
|
||||
if ($(this).val() == new_service_pcm_once_for_booking) {
|
||||
$('#new_service_pcm_days_container').hide();
|
||||
} else {
|
||||
$('#new_service_pcm_days_container').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('.total_taxes_price_info img').tooltip({
|
||||
content: function () {
|
||||
@@ -1659,6 +1667,7 @@
|
||||
},
|
||||
complete: function() {
|
||||
$(".loading_overlay").hide();
|
||||
initTooltip();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1794,6 +1803,7 @@
|
||||
},
|
||||
complete: function() {
|
||||
$(".loading_overlay").hide();
|
||||
initTooltip();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1844,6 +1854,7 @@
|
||||
},
|
||||
complete: function() {
|
||||
$(".loading_overlay").hide();
|
||||
initTooltip();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
<span class="toolbar_order_status_badge badge badge-danger">{l s='Refunded'}</span>
|
||||
{elseif $currentState->id == Configuration::get('PS_OS_CANCELED')}
|
||||
<span class="toolbar_order_status_badge badge badge-danger">{l s='Cancelled'}</span>
|
||||
{elseif $currentState->id == Configuration::get('PS_OS_NO_SHOW')}
|
||||
<span class="toolbar_order_status_badge badge badge-danger">{l s='No-show'}</span>
|
||||
{else}
|
||||
<span class="toolbar_order_status_badge badge badge-success">{l s='Booked'}</span>
|
||||
{/if}
|
||||
@@ -42,6 +44,7 @@
|
||||
<script type="text/javascript">
|
||||
var admin_order_tab_link = "{$link->getAdminLink('AdminOrders')|addslashes}";
|
||||
var rooms_reallocation_url = "{$link->getAdminLink('AdminOrders')|addslashes}";
|
||||
var new_service_pcm_once_for_booking = {Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval};
|
||||
var id_order = {$order->id};
|
||||
var id_lang = {$current_id_lang};
|
||||
var id_currency = {$order->id_currency};
|
||||
@@ -173,13 +176,13 @@
|
||||
</div>
|
||||
<!-- Change status form -->
|
||||
{* If current state is refunded or cancelled the further order status changes are not allowed *}
|
||||
{if $can_edit && (!isset($currentState) || (isset($currentState) && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))))}
|
||||
{if $can_edit && (!isset($currentState) || (isset($currentState) && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED') && $currentState->id != Configuration::get('PS_OS_NO_SHOW'))))}
|
||||
<form action="{$currentIndex|escape:'html':'UTF-8'}&vieworder&id_order={$order->id|intval}&token={$smarty.get.token}" method="post" class="form-horizontal well hidden-print">
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<select id="id_order_state" class="chosen form-control" name="id_order_state">
|
||||
{foreach from=$states item=state}
|
||||
<option value="{$state['id_order_state']|intval}"{if isset($currentState) && $state['id_order_state'] == $currentState->id} selected="selected" disabled="disabled"{elseif ($state['id_order_state'] == Configuration::get('PS_OS_REFUND') && ($total_paid <= 0 && !$discounts|count))} disabled="disabled"{elseif ($state['id_order_state'] == Configuration::get('PS_OS_CANCELED') && ($totalRefundedRooms || $discounts|count || $total_paid > 0))} disabled="disabled"{elseif ($state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_PAID') || $state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_UNPAID') || $state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_PARTIAL_PAID')) && (!isset($orderOverBookings) || !$orderOverBookings)} disabled="disabled"{/if}>{$state['name']|escape}</option>
|
||||
<option value="{$state['id_order_state']|intval}"{if isset($currentState) && $state['id_order_state'] == $currentState->id} selected="selected" disabled="disabled"{elseif ($state['id_order_state'] == Configuration::get('PS_OS_REFUND') || $state['id_order_state'] == Configuration::get('PS_OS_CANCELED') || $state['id_order_state'] == Configuration::get('PS_OS_NO_SHOW'))} disabled="disabled"{elseif ($state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_PAID') || $state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_UNPAID') || $state['id_order_state'] == Configuration::get('PS_OS_OVERBOOKING_PARTIAL_PAID')) && (!isset($orderOverBookings) || !$orderOverBookings)} disabled="disabled"{/if}>{$state['name']|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="hidden" name="id_order" value="{$order->id}" />
|
||||
@@ -764,8 +767,8 @@
|
||||
{if $hotel_booking}
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-bed"></i> {l s='Rooms Booking Detail'} <span class="badge">{$order_detail_data|@count}</span>
|
||||
{if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))}
|
||||
<i class="icon-bed"></i> {l s='Booking Detail'} <span class="badge">{$order_detail_data|@count}</span>
|
||||
{if $can_edit && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED') && $currentState->id != Configuration::get('PS_OS_NO_SHOW'))}
|
||||
<button type="button" id="add_room" class="btn btn-primary pull-right">
|
||||
<i class="icon-plus-sign"></i> {l s='Add Rooms'}
|
||||
</button>
|
||||
@@ -797,7 +800,7 @@
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-bed"></i> {l s='Products Detail'} <span class="badge">{$hotel_service_products|count}</span>
|
||||
{if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))}
|
||||
{if $can_edit && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED') && $currentState->id != Configuration::get('PS_OS_NO_SHOW'))}
|
||||
<button type="button" id="add_product" class="btn btn-primary pull-right">
|
||||
<i class="icon-plus-sign"></i> {l s='Add Product'}
|
||||
</button>
|
||||
@@ -829,7 +832,7 @@
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-bed"></i> {l s='Products Detail'} <span class="badge">{$standalone_service_products|count}</span>
|
||||
{if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))}
|
||||
{if $can_edit && ($currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED') && $currentState->id != Configuration::get('PS_OS_NO_SHOW'))}
|
||||
<button type="button" id="add_product" class="btn btn-primary pull-right">
|
||||
<i class="icon-plus-sign"></i> {l s='Add Product'}
|
||||
</button>
|
||||
@@ -867,7 +870,8 @@
|
||||
<div class="panel panel-total">
|
||||
<div class="table-responsive">
|
||||
<table class="table" id="order-details-price">
|
||||
{* Assign order price *}
|
||||
|
||||
{* Assign order price *}
|
||||
{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)}
|
||||
{assign var=order_product_price value=($order->total_products)}
|
||||
{assign var=order_discount_price value=$order->total_discounts_tax_excl}
|
||||
@@ -885,8 +889,8 @@
|
||||
{assign var=total_rooms_price_tax_incl value=$order->getTotalProductsWithTaxes(false, true)}
|
||||
|
||||
{* Get total extra services including convenience fees prices *}
|
||||
{assign var=total_products_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_HOTEL_STANDALONE) + $order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_STANDALONE))}
|
||||
{assign var=total_products_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_HOTEL_STANDALONE) + $order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_STANDALONE))}
|
||||
{assign var=total_products_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_HOTEL) + $order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_STANDALONE))}
|
||||
{assign var=total_products_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_HOTEL) + $order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_STANDALONE))}
|
||||
|
||||
{* Get total of extra services prices(excluding convenience fee) *}
|
||||
{assign var=total_room_services_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE))}
|
||||
@@ -1349,9 +1353,12 @@
|
||||
{addJsDefL name='no_children_allowed_txt'}{l s='Only adults can be accommodated' js=1}{/addJsDefL}
|
||||
{addJsDefL name='invalid_occupancy_txt'}{l s='Invalid occupancy(adults/children) found.' js=1}{/addJsDefL}
|
||||
{addJsDefL name='select_room_txt'}{l s='Select room' js=1}{/addJsDefL}
|
||||
{addJsDefL name='room_status_sealed_warning_txt'}{l s='Are you sure? You cannot change the booking status after this.' js=1}{/addJsDefL}
|
||||
{addJsDef max_child_age=$max_child_age|escape:'quotes':'UTF-8'}
|
||||
{addJsDef ROOM_STATUS_CHECKED_IN=$ROOM_STATUS_CHECKED_IN|escape:'quotes':'UTF-8'}
|
||||
{addJsDef ROOM_STATUS_CHECKED_OUT=$ROOM_STATUS_CHECKED_OUT|escape:'quotes':'UTF-8'}
|
||||
{addJsDef ROOM_STATUS_NO_SHOW=$ROOM_STATUS_NO_SHOW|escape:'quotes':'UTF-8'}
|
||||
{addJsDef ROOM_STATUS_CANCELLED=$ROOM_STATUS_CANCELLED|escape:'quotes':'UTF-8'}
|
||||
{addJsDef ALLOTMENT_MANUAL=$ALLOTMENT_MANUAL|escape:'quotes':'UTF-8'}
|
||||
{addJsDef PS_OS_CANCELED=Configuration::get('PS_OS_CANCELED')|escape:'quotes':'UTF-8'}
|
||||
{addJsDef PS_OS_REFUND=Configuration::get('PS_OS_REFUND')|escape:'quotes':'UTF-8'}
|
||||
|
||||
@@ -61,7 +61,22 @@
|
||||
<input id="selected_service_product_{$product['id_product']}" type="hidden" value="{if $serviceSelected}1{else}0{/if}" name="selected_service_product[{$product.id_product}]"/>
|
||||
</td>
|
||||
<td>
|
||||
<p>{$product['name']|escape:'html':'UTF-8'}</p>
|
||||
<div>
|
||||
{$product['name']|escape:'html':'UTF-8'}
|
||||
{capture name='room_type_service_tooltip_content'}
|
||||
{assign var="priceCalcMethod" value=$product['price_calculation_method']|default:0}
|
||||
<div class="tooltip-cont">
|
||||
<div class="tooltip-popup-row"><label>{l s='Applied on:'}</label></div>
|
||||
<ul class="tooltip-days">
|
||||
{foreach from=Product::getPriceCalculationMethodDaysLabel($priceCalcMethod) item='pcmDayLabel'}
|
||||
<li>{$pcmDayLabel}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/capture}
|
||||
|
||||
{include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.room_type_service_tooltip_content allow_html=true}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT}
|
||||
@@ -91,7 +106,11 @@
|
||||
{$cartCurrency->sign}
|
||||
</span>
|
||||
<input class="service_cart_price_input" id="service_cart_price_{$selectedRoomServiceProduct['id']}_{$product['id_product']}" type="text" value="{$product.price_tax_exc}" name="service_price[{$product['id_product']|escape:'html':'UTF-8'}]"{if isset($can_edit) && !$can_edit} readonly{/if}/>
|
||||
{if Product::PRICE_CALCULATION_METHOD_PER_DAY == $product['price_calculation_method']}
|
||||
{if Product::getServicePriceBillableDays(
|
||||
$product['price_calculation_method'],
|
||||
$selectedRoomServiceProduct['date_from'],
|
||||
$selectedRoomServiceProduct['date_to']
|
||||
) > 1}
|
||||
<span class="input-group-addon">{l s='/ night'}</span>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -130,11 +149,38 @@
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Price calculation method'}</label>
|
||||
<select class="form-control" name="new_service_price_calc_method">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_BOOKING}">{l s='Add price once for the booking range'}</option>
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_DAY}">{l s='Add price for each day of booking'}</option>
|
||||
<label class="control-label required">{l s='Price calculation method'}</label>
|
||||
<select id="new_service_pcm_type" name="price_calculation_type">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval}" selected="selected">{l s='Once for the booking range'}</option>
|
||||
<option value="0">{l s='Select applicable days'}</option>
|
||||
</select>
|
||||
<div id="new_service_pcm_days_container" style="margin-top: 10px; display:none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label class="control-label required">{l s='Applied on:'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkin" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKIN_DAY|intval}">
|
||||
{l s='Check-in day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkout" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKOUT_DAY|intval}">
|
||||
{l s='Check-out day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_duringstay" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_DURING_STAY|intval}"/>
|
||||
{l s='During-stay days'}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Auto added service'}</label>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<th></th>
|
||||
<th>{l s='Room No.'}</th>
|
||||
<th>{l s='Room Type'}</th>
|
||||
<th>{l s='Hotel Name'}</th>
|
||||
<th>{l s='Property Name'}</th>
|
||||
<th>{l s='Duration'}</th>
|
||||
<th>{l s='Total Price (Tax incl.)'}</th>
|
||||
</tr>
|
||||
@@ -98,7 +98,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="form-group">
|
||||
<label class="control-label">{l s='Reason to Cancel'}</label>
|
||||
<label class="control-label">{l s='Reason to Refund'}</label>
|
||||
<textarea rows="3" class="textarea-autosize cancellation_reason" name="cancellation_reason"></textarea>
|
||||
</div>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<div class="list-empty">
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No room bookings found to cancel'}
|
||||
{l s='No room bookings found to refund.'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<input type="hidden" name="product_price_tax_excl" value="{Tools::ps_round($data.original_unit_price_tax_excl, _PS_PRICE_COMPUTE_PRECISION_)}" />
|
||||
<input type="hidden" name="product_price_tax_incl" value="{Tools::ps_round($data.original_unit_price_tax_incl, _PS_PRICE_COMPUTE_PRECISION_)}" />
|
||||
|
||||
{if isset($data.id_status) && ($data.id_status != HotelBookingDetail::STATUS_ALLOTED)}
|
||||
{if isset($data.id_status) && ($data.id_status != HotelBookingDetail::STATUS_ASSIGNED)}
|
||||
<div class="alert alert-info">
|
||||
{if $data.id_status == HotelBookingDetail::STATUS_CHECKED_IN}
|
||||
{l s='The check-in date cannot be changed as the booking has already been checked in.'}
|
||||
@@ -49,7 +49,7 @@
|
||||
{if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_refunded}
|
||||
{dateFormat date=$data.date_from}
|
||||
{else}
|
||||
<input type="text" class="form-control edit_product_date_from" readonly {if isset($data.id_status) && ($data.id_status != HotelBookingDetail::STATUS_ALLOTED)}disabled{/if}/>
|
||||
<input type="text" class="form-control edit_product_date_from" readonly {if isset($data.id_status) && ($data.id_status != HotelBookingDetail::STATUS_ASSIGNED)}disabled{/if}/>
|
||||
<div class="input-group-addon"><i class="icon-calendar"></i></div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -52,8 +52,24 @@
|
||||
{if isset($additionalServices) && $additionalServices}
|
||||
{foreach $additionalServices['additional_services'] as $service}
|
||||
<tr class="room_service_block" data-id_service_product_order_detail="{$service['id_service_product_order_detail']}">
|
||||
<td>
|
||||
<div>{$service['name']|escape:'html':'UTF-8'}</div>
|
||||
<td width="22%">
|
||||
<div>
|
||||
{$service['name']|escape:'html':'UTF-8'}
|
||||
{capture name='room_type_service_tooltip_content'}
|
||||
{assign var="priceCalcMethod" value=$service['price_calculation_method']|default:0}
|
||||
<div class="tooltip-cont">
|
||||
<div class="tooltip-popup-row"><label>{l s='Applied on:'}</label></div>
|
||||
<ul class="tooltip-days">
|
||||
{foreach from=Product::getPriceCalculationMethodDaysLabel($priceCalcMethod) item='pcmDayLabel'}
|
||||
<li>{$pcmDayLabel}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/capture}
|
||||
|
||||
{include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.room_type_service_tooltip_content allow_html=true}
|
||||
</div>
|
||||
</div>
|
||||
<input value="{$service['id_service_product_order_detail']|escape:'html':'UTF-8'}" name="id_service_product_order_detail[]" type="hidden"/>
|
||||
</td>
|
||||
<td>
|
||||
@@ -82,7 +98,11 @@
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">{$currencySign}</span>
|
||||
<input type="text" class="form-control unit_price" value="{Tools::ps_round($service['unit_price_tax_excl'], 2)}" data-id-product="{$service['id_product']}" name="service_price[{$service['id_service_product_order_detail']}]">
|
||||
{if Product::PRICE_CALCULATION_METHOD_PER_DAY == $service.price_calculation_method}
|
||||
{if Product::getServicePriceBillableDays(
|
||||
$service.price_calculation_method,
|
||||
$additionalServices['date_from'],
|
||||
$additionalServices['date_to']
|
||||
) > 1}
|
||||
<span class="input-group-addon">{l s='/ night'}</span>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -130,7 +150,19 @@
|
||||
</td>
|
||||
<td>
|
||||
{$product['name']|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
{capture name='adm_pcm_tooltip_content'}
|
||||
{assign var="priceCalcMethod" value=$product['price_calculation_method']|default:0}
|
||||
<div class="tooltip-cont">
|
||||
<div class="tooltip-popup-row"><label>{l s='Applied on:'}</label></div>
|
||||
<ul class="tooltip-days">
|
||||
{foreach from=Product::getPriceCalculationMethodDaysLabel($priceCalcMethod) item='pcmDayLabel'}
|
||||
<li>{$pcmDayLabel}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/capture}
|
||||
{include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.adm_pcm_tooltip_content allow_html=true}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{if $product['auto_add_to_cart'] && $product['price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM}
|
||||
<span class="badge badge-info label">{l s='Auto added'}</span><br>
|
||||
@@ -152,9 +184,13 @@
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">{$currencySign}</span>
|
||||
<input type="text" class="form-control unit_price" name="service_price[{$product['id_product']|escape:'html':'UTF-8'}]" value="{$product['price_tax_exc']}" data-id-product="{$product.id_product}">
|
||||
{if Product::PRICE_CALCULATION_METHOD_PER_DAY == $product['price_calculation_method']}
|
||||
<span class="input-group-addon">{l s='/ night'}</span>
|
||||
{/if}
|
||||
{if Product::getServicePriceBillableDays(
|
||||
$product['price_calculation_method'],
|
||||
$additionalServices['date_from'],
|
||||
$additionalServices['date_to']
|
||||
) > 1}
|
||||
<span class="input-group-addon">{l s='/ night'}</span>
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -189,11 +225,38 @@
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Price calculation method'}</label>
|
||||
<select class="form-control" name="new_service_price_calc_method">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_BOOKING}">{l s='Add price once for the booking range'}</option>
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_PER_DAY}">{l s='Add price for each day of booking'}</option>
|
||||
<label class="control-label required">{l s='Price calculation method'}</label>
|
||||
<select id="new_service_pcm_type" name="price_calculation_type">
|
||||
<option value="{Product::PRICE_CALCULATION_METHOD_ONCE_FOR_BOOKING|intval}" selected="selected">{l s='Once for the booking range'}</option>
|
||||
<option value="0">{l s='Select applicable days'}</option>
|
||||
</select>
|
||||
<div id="new_service_pcm_days_container" style="margin-top: 10px; display:none;">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<label class="control-label required">{l s='Applied on:'}</label>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkin" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKIN_DAY|intval}">
|
||||
{l s='Check-in day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_checkout" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_CHECKOUT_DAY|intval}">
|
||||
{l s='Check-out day'}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="pcm_duringstay" name="new_service_price_calc_method[]" value="{Product::PRICE_CALCULATION_METHOD_ON_DURING_STAY|intval}"/>
|
||||
{l s='During-stay days'}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<label class="control-label">{l s='Auto added service'}</label>
|
||||
@@ -268,7 +331,20 @@
|
||||
<td>
|
||||
{$service['id_product']|escape:'html':'UTF-8'}{if !$service['product_deleted']} <a target="blank" href="{$link->getAdminLink('AdminNormalProducts')|escape:'html':'UTF-8'}&id_product={$service['id_product']|escape:'html':'UTF-8'}&updateproduct"><i class="icon-external-link-sign"></i></a>{/if}
|
||||
</td>
|
||||
<td>{$service['name']|escape:'html':'UTF-8'}</td>
|
||||
<td>
|
||||
{$service['name']|escape:'html':'UTF-8'}
|
||||
{capture name='room_type_service_pcm_tooltip_content'}
|
||||
{assign var="priceCalcMethod" value=$service['price_calculation_method']|default:0}
|
||||
<div class="tooltip-cont">
|
||||
<div class="tooltip-popup-row"><label>{l s='Applied on:'}</label></div>
|
||||
<ul class="tooltip-days">
|
||||
{foreach from=Product::getPriceCalculationMethodDaysLabel($priceCalcMethod) item='pcmDayLabel'}
|
||||
<li>{$pcmDayLabel}</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/capture}
|
||||
{include file='helpers/tooltip.tpl' tooltip_content=$smarty.capture.room_type_service_pcm_tooltip_content allow_html=true} </td>
|
||||
<td>
|
||||
{if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT}
|
||||
<span class="badge badge-info label">{l s='Convenience fee'}</span>
|
||||
@@ -286,9 +362,13 @@
|
||||
</td>
|
||||
<td>
|
||||
{displayPrice price=$service['unit_price_tax_excl'] currency=$orderCurrency}
|
||||
{if $service['price_calculation_method'] == Product::PRICE_CALCULATION_METHOD_PER_DAY}
|
||||
{l s='/ night'}
|
||||
{/if}
|
||||
{if Product::getServicePriceBillableDays(
|
||||
$service['price_calculation_method'],
|
||||
$additionalServices['date_from'],
|
||||
$additionalServices['date_to']
|
||||
) > 1}
|
||||
{l s='/ night'}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{displayPrice price=$service['total_price_tax_excl'] currency=$orderCurrency}
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
<label class="control-label">{l s='Status'}</label>
|
||||
<select name="booking_order_status" class="form-control booking_order_status margin-bottom-5">
|
||||
{foreach from=$hotel_order_status item=state}
|
||||
<option value="{$state['id_status']|intval}">{$state.name|escape}</option>
|
||||
<option value="{$state['id_status']|intval}"{if $state.disabled} disabled{/if}>{$state.name|escape}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group" {if $current_room_status == $ROOM_STATUS_ALLOTED}style="display:none;"{/if}>
|
||||
<div class="form-group" {if $current_room_status == $ROOM_STATUS_ASSIGNED}style="display:none;"{/if}>
|
||||
<label class="control-label">{l s='Date'}</label>
|
||||
<div class="input-group">
|
||||
<input type="text" name="status_date" class="room_status_date wk-input-date" value="" />
|
||||
@@ -46,6 +46,11 @@
|
||||
<input type="hidden" id="room_status_id_order" name="id_order" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">{l s='Remark'}</label>
|
||||
<textarea name="status_remark" class="form-control" rows="2"></textarea>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary" type="submit" name="submitbookingOrderStatus" style="display:none" id="submitbookingOrderStatus"></button>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
{if isset($product->id)}
|
||||
<div id="product-configuration" class="panel product-tab">
|
||||
<input type="hidden" name="submitted_tabs[]" value="Configuration" />
|
||||
<h3 class="tab"> <i class="icon-AdminAdmin"></i> {l s='Rooms'}</h3>
|
||||
<h3 class="tab"> <i class="icon-AdminAdmin"></i> {$htl_room_type['selling_object_plural_name']}</h3>
|
||||
|
||||
<input type="hidden" id="checkConfSubmit" value="0" name="checkConfSubmit">
|
||||
|
||||
@@ -34,35 +34,35 @@
|
||||
<th class="center"></th>
|
||||
<th class="col-sm-2 center">
|
||||
<label class="control-label required">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter room number. For eg. A-101, A-102 etc. Invalid characters <>;=#{}'}">
|
||||
{l s='Room No.'}
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter %s number. For eg. A-101, A-102 etc. Invalid characters <>;=#{}' sprintf=$htl_room_type['selling_object_name']}">
|
||||
{l s='%s No.' sprintf=$htl_room_type['selling_object_name']}
|
||||
</span>
|
||||
</label>
|
||||
</th>
|
||||
<th class="col-sm-2 center">
|
||||
<label class="control-label">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter floor of the room. For eg. First, Second etc. Invalid characters <>;=#{}'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter floor of the %s. For eg. First, Second etc. Invalid characters <>;=#{}' sprintf=$htl_room_type['selling_object_name']}">
|
||||
{l s='Floor'}
|
||||
</span>
|
||||
</label>
|
||||
</th>
|
||||
<th class="col-sm-2 center">
|
||||
<label class="control-label">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Select status of the room.'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Select status of the %s.' sprintf=$htl_room_type['selling_object_name']}">
|
||||
{l s='Status'}
|
||||
</span>
|
||||
</label>
|
||||
</th>
|
||||
<th class="col-sm-3 center">
|
||||
<label class="control-label">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter extra information about this room. Leave empty if not required.'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Enter extra information about this %s. Leave empty if not required.' sprintf=$htl_room_type['selling_object_plural_name']}">
|
||||
{l s='Extra Information'}
|
||||
</span>
|
||||
</label>
|
||||
</th>
|
||||
<th class="col-sm-2 center">
|
||||
<label class="control-label">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Set date ranges when room is set to Temporarily Inactive.'}">
|
||||
<span class="label-tooltip" data-toggle="tooltip" data-original-title="{l s='Set date ranges when %s is set to Temporarily Inactive.' sprintf=$htl_room_type['selling_object_plural_name']}">
|
||||
{l s='Disable Dates'}
|
||||
</span>
|
||||
</label>
|
||||
@@ -70,8 +70,8 @@
|
||||
<th class="col-sm-1 center">
|
||||
<label class="control-label">
|
||||
<span class="label-tooltip" data-toggle="tooltip"
|
||||
data-original-title="{l s='Manage connected rooms for this room'}">
|
||||
{l s='Connected Rooms'}
|
||||
data-original-title="{l s='Manage connected rooms for this %s' sprintf=$htl_room_type['selling_object_name']}">
|
||||
{l s='Connected %s' sprintf=$htl_room_type['selling_object_plural_name']}
|
||||
</span>
|
||||
</label>
|
||||
</th>
|
||||
@@ -224,14 +224,14 @@
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a id="bulk-create-rooms-button" class="bulkCreateRoomModal" data-toggle="modal" data-target="#bulkCreateRoomModal" type="button" data-size="s" data-style="expand-right">
|
||||
<i class="icon-plus"></i> {l s='Create Rooms'}
|
||||
<i class="icon-plus"></i> {l s='Create %s' sprintf=$htl_room_type['selling_object_plural_name']}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<button id="add-more-rooms-button" class="btn btn-default" type="button" data-size="s" data-style="expand-right">
|
||||
<i class="icon icon-plus"></i>
|
||||
{l s='Add More Rooms'}
|
||||
{l s='Add More %s' sprintf=$htl_room_type['selling_object_plural_name']}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -276,7 +276,7 @@
|
||||
<div class="alert alert-warning">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<ul class="list-unstyled">
|
||||
<li>{l s='Please save this room first to add dates.'}</li>
|
||||
<li>{l s='Please save this %s first to add dates.' sprintf=$htl_room_type['selling_object_plural_name']}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -348,7 +348,7 @@
|
||||
<button type="button" class="close margin-right-10" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title"><i class="icon-calendar"></i> {l s='Bulk Update Rooms'}</h4>
|
||||
<h4 class="modal-title"><i class="icon-calendar"></i> {l s='Bulk Update %s' sprintf=$htl_room_type['selling_object_plural_name']}</h4>
|
||||
</div>
|
||||
<div class="modal-body padding-top-20">
|
||||
<div class="text-left errors-wrap" style="display: none;"></div>
|
||||
@@ -424,13 +424,13 @@
|
||||
<button type="button" class="close margin-right-10" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title"><i class="icon-calendar"></i> {l s='Bulk Create Rooms'}</h4>
|
||||
<h4 class="modal-title"><i class="icon-calendar"></i> {l s='Bulk Create %s' sprintf=$htl_room_type['selling_object_plural_name']}</h4>
|
||||
</div>
|
||||
<div class="modal-body padding-top-20">
|
||||
<div class="text-left errors-wrap" style="display: none;"></div>
|
||||
<div class="alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<p>{l s='If both the Room Prefix and Starting Room No. fields are left blank, the room name will be generated using the acronym of the Room Type name.'}</p>
|
||||
<p>{l s='If both the %s Prefix and Starting %s No. fields are left blank, the %s name will be generated using the acronym of the Room Type name.' sprintf=array($htl_room_type['selling_object_name'], $htl_room_type['selling_object_plural_name'], $htl_room_type['selling_object_name'])}</p>
|
||||
<p>
|
||||
<strong>{l s='Example:'}</strong>
|
||||
{l s='For the Room Type'}
|
||||
@@ -441,7 +441,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
<span>{l s='Room prefix'}</span>
|
||||
<span>{l s='%s prefix' sprintf=$htl_room_type['selling_object_name']}</span>
|
||||
</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" name="bulk_create_room_prefix"/>
|
||||
@@ -449,7 +449,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-lg-3">
|
||||
<span>{l s='Starting Room No.'}</span>
|
||||
<span>{l s='Starting %s No.' sprintf=$htl_room_type['selling_object_name']}</span>
|
||||
</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" name="bulk_create_room_num"/>
|
||||
@@ -457,7 +457,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label required col-lg-3">
|
||||
<span>{l s='Number of Rooms'}</span>
|
||||
<span>{l s='Number of %s' sprintf=$htl_room_type['selling_object_plural_name']}</span>
|
||||
</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" name="bulk_create_room_qty"/>
|
||||
@@ -593,13 +593,13 @@
|
||||
<li class="enable_selected_dates btn btn-default">
|
||||
<span class="enable_selected_dates">
|
||||
<i class="icon-check"></i>
|
||||
{l s='Make Room Available'}
|
||||
{l s='Make %s Available' sprintf=$htl_room_type['selling_object_name']}
|
||||
</span>
|
||||
</li>
|
||||
<li class="disabled_selected_dates btn btn-default">
|
||||
<span class="disabled_selected_dates">
|
||||
<i class="icon-ban"></i>
|
||||
{l s='Disable Room'}
|
||||
{l s='Disable %s' sprintf=$htl_room_type['selling_object_name']}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -1606,7 +1606,7 @@
|
||||
$('#deactiveDatesModal').attr('data-room-row-index', roomRowIndex);
|
||||
$('#deactiveDatesModal').attr('data-id-room', idRoom);
|
||||
if ($.trim(roomNum) != '') {
|
||||
roomNum = '( '+'{l s='Room No'}'+' '+roomNum+')';
|
||||
roomNum = '( '+'{l s='%s No' sprintf=$htl_room_type['selling_object_plural_name']}'+' '+roomNum+')';
|
||||
}
|
||||
|
||||
$('#deactiveDatesModal .disable_dates_room_num').html(roomNum);
|
||||
|
||||
@@ -53,6 +53,119 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><span class="title_box">{l s='Feature'}</span></th>
|
||||
<th><span class="title_box">{l s='Feature Image'}</span></th>
|
||||
<!-- <th><span class="title_box"><u>{l s='or'}</u> {l s='Customized value'}</span></th> --><!-- by webkul -->
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{foreach from=$available_features item=available_feature}
|
||||
|
||||
<tr>
|
||||
{foreach from=$available_feature.featureValues item=value}
|
||||
<td>
|
||||
<input type="checkbox" class="checkbox select_hotel_feature" name="feature_{$available_feature.id_feature}_check" value="{$value.id_feature_value}" {if $available_feature.current_item == $value.id_feature_value}checked="checked"{/if}/>
|
||||
</td>
|
||||
<td>{$available_feature.name}</td>
|
||||
<td>
|
||||
<input type="hidden" id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value" value="{$value.id_feature_value}">
|
||||
<img class="img img-responsive" width="15px" src="{$base_url}img/rf/{$value.value}" title="Stay image" />
|
||||
</td>
|
||||
{/foreach}
|
||||
{*--<td>
|
||||
{if sizeof($available_feature.featureValues)}
|
||||
<select id="feature_{$available_feature.id_feature}_value" name="feature_{$available_feature.id_feature}_value"
|
||||
onchange="$('.custom_{$available_feature.id_feature}_').val('');">
|
||||
<option value="0">---</option>
|
||||
{foreach from=$available_feature.featureValues item=value}
|
||||
<option value="{$value.id_feature_value}"{if $available_feature.current_item == $value.id_feature_value}selected="selected"{/if} >
|
||||
{$value.value|truncate:40}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
<input type="hidden" name="feature_{$available_feature.id_feature}_value" value="0" />
|
||||
<span>{l s='N/A'} -
|
||||
<a href="{$link->getAdminLink('AdminFeatures')|escape:'html':'UTF-8'}&addfeature_value&id_feature={$available_feature.id_feature}"
|
||||
class="confirm_leave btn btn-link"><i class="icon-plus-sign"></i> {l s='Add pre-defined values first'} <i class="icon-external-link-sign"></i></a>
|
||||
</span>
|
||||
{/if} *}<!-- By Webkul -->
|
||||
</td>
|
||||
{* <td>
|
||||
|
||||
<div class="row lang-0" style='display: none;'>
|
||||
<div class="col-lg-9">
|
||||
<textarea class="custom_{$available_feature.id_feature}_ALL textarea-autosize" name="custom_{$available_feature.id_feature}_ALL"
|
||||
cols="40" style='background-color:#CCF' rows="1" onkeyup="{foreach from=$languages key=k item=language}$('.custom_{$available_feature.id_feature}_{$language.id_lang}').val($(this).val());{/foreach}" >{$available_feature.val[1].value|escape:'html':'UTF-8'|default:""}</textarea>
|
||||
|
||||
</div>
|
||||
{if $languages|count > 1}
|
||||
<div class="col-lg-3">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{l s='ALL'}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
{foreach from=$languages item=language}
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="restore_lng($(this),{$language.id_lang});">{$language.iso_code}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{foreach from=$languages key=k item=language}
|
||||
{if $languages|count > 1}
|
||||
<div class="row translatable-field lang-{$language.id_lang}">
|
||||
<div class="col-lg-9">
|
||||
{/if}
|
||||
<textarea
|
||||
class="custom_{$available_feature.id_feature}_{$language.id_lang} textarea-autosize"
|
||||
name="custom_{$available_feature.id_feature}_{$language.id_lang}"
|
||||
cols="40"
|
||||
rows="1"
|
||||
onkeyup="if (isArrowKey(event)) return ;$('#feature_{$available_feature.id_feature}_value').val(0);" >{$available_feature.val[$language.id_lang].value|escape:'html':'UTF-8'|default:""}</textarea>
|
||||
|
||||
{if $languages|count > 1}
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
{$language.iso_code}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="javascript:void(0);" onclick="all_languages($(this));">{l s='ALL'}</a></li>
|
||||
{foreach from=$languages item=language}
|
||||
<li>
|
||||
<a href="javascript:hideOtherLanguage({$language.id_lang});">{$language.iso_code}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</td> *}<!-- By Webkul -->
|
||||
|
||||
</tr>
|
||||
{foreachelse}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align:center;"><i class="icon-warning-sign"></i> {l s='No features have been defined'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{$link->getAdminLink('AdminFeatures')|escape:'html':'UTF-8'}&addfeature" class="btn btn-link confirm_leave button">
|
||||
<i class="icon-plus-sign"></i> {l s='Add a new feature'} <i class="icon-external-link-sign"></i>
|
||||
</a>
|
||||
<div class="panel-footer">
|
||||
<a href="{$link->getAdminLink('AdminProducts')|escape:'html':'UTF-8'}{if isset($smarty.request.page) && $smarty.request.page > 1}&submitFilterproduct={$smarty.request.page|intval}{/if}" class="btn btn-default"><i class="process-icon-cancel"></i> {l s='Cancel'}</a>
|
||||
<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> {l s='Save'}</button>
|
||||
|
||||
@@ -125,16 +125,16 @@
|
||||
<div class="form-group" id="hotel_selection">
|
||||
{if isset($htl_room_type)}
|
||||
<label class="control-label col-sm-3 required">
|
||||
{l s='Hotel'}
|
||||
{l s='Property'}
|
||||
</label>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" class="form-control" value="{$htl_full_info['hotel_name']}" readonly>
|
||||
<input type="hidden" name="id_hotel" value="{$htl_room_type['id_hotel']}">
|
||||
<p class="help-block">{l s='Hotel once assigned cannot be reassigned'}</p>
|
||||
<p class="help-block">{l s='Property once assigned cannot be reassigned'}</p>
|
||||
</div>
|
||||
{else}
|
||||
<label class="control-label col-sm-3 required" for="hotel_place">
|
||||
{l s='Select Hotel'}
|
||||
{l s='Select Property'}
|
||||
</label>
|
||||
<div class="col-sm-5">
|
||||
{if isset($htl_info) && $htl_info}
|
||||
@@ -143,15 +143,32 @@
|
||||
<option value="{$htl_dtl['id_hotel']}" >{$htl_dtl['hotel_name']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<p class="help-block">{l s='Hotel once assigned cannot be reassigned'}</p>
|
||||
<p class="help-block">{l s='Property once assigned cannot be reassigned'}</p>
|
||||
{else}
|
||||
<div class="control-label col-sm-3 text-danger">{l s='No hotel are available'}</div>
|
||||
<div class="control-label col-sm-3 text-danger">{l s='No property are available'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if isset($selling_object_info) && $selling_object_info}
|
||||
<div class="form-group" id="room_type_selection">
|
||||
<label class="control-label col-sm-3">
|
||||
<span class="label-tooltip" data-toggle="tooltip" title="{l s='Select the room selling type for this room type.'}">
|
||||
{l s='Selling Object'}
|
||||
</span>
|
||||
</label>
|
||||
<div class="col-sm-5">
|
||||
<select name="id_selling_object" id="id_selling_object" class="form-control chosen" >
|
||||
{foreach from=$selling_object_info item=selling_object_type}
|
||||
<option value="{$selling_object_type['id_room_type_selling_object']}" {if isset($selected_room_type_selling_object) && $selling_object_type['id_room_type_selling_object'] == $selected_room_type_selling_object}selected{/if}>{$selling_object_type['name']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="form-group hidden">
|
||||
<label class="control-label col-lg-3" for="reference">
|
||||
<span class="label-tooltip" data-toggle="tooltip"
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-3 required" for="max_los">
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Enter maximum length of stay for the hotel. set 0 day for setting no limit on maximum length of stay.'}">{l s='Maximum length of stay'}</span>
|
||||
<span title="" data-toggle="tooltip" class="label-tooltip" data-original-title="{l s='Enter maximum length of stay for the property. set 0 day for setting no limit on maximum length of stay.'}">{l s='Maximum length of stay'}</span>
|
||||
</label>
|
||||
<div class="col-sm-9">
|
||||
<div class="row">
|
||||
|
||||
@@ -25,10 +25,15 @@
|
||||
<div id="container" class="row">
|
||||
<div class="sidebar navigation col-md-3">
|
||||
<nav class="list-group categorieList">
|
||||
{if count($modules)}
|
||||
{foreach $modules as $module}
|
||||
{if $module_instance[$module.name]}
|
||||
<a class="list-group-item{if ($current_module_name && $current_module_name == $module.name)} active{/if}" href="{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}&module={$module.name}">{$module_instance[$module.name]->displayName}</a>
|
||||
{if count($module_tabs)}
|
||||
{foreach $module_tabs as $module_name => $moduleData}
|
||||
{if isset($moduleData.tabs) && $moduleData.tabs}
|
||||
{foreach $moduleData.tabs as $tab}
|
||||
{assign var="tab_active" value=($current_module_name == $module_name && $current_tab == $tab.key)}
|
||||
<a class="list-group-item{if $tab_active} active{/if}" href="{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}&module={$module_name|escape:'html':'UTF-8'}&tab={$tab.key|escape:'html':'UTF-8'}">{$tab.label}</a>
|
||||
{/foreach}
|
||||
{else}
|
||||
<a class="list-group-item{if $current_module_name == $module_name} active{/if}" href="{$current|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}&module={$module_name|escape:'html':'UTF-8'}">{$moduleData.display_name}</a>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user