diff --git a/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl b/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl index 3fe9645bf..2c869bd3c 100644 --- a/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl +++ b/admin/themes/default/template/controllers/normal_products/helpers/form/form.tpl @@ -79,8 +79,10 @@ var product_type_virtual = {Product::PTYPE_VIRTUAL|intval}; var product_type_simple = {Product::PTYPE_SIMPLE|intval}; - var with_room_type = {Product::SERVICE_PRODUCT_WITH_ROOMTYPE|intval}; - var without_room_type = {Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE|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 price_addition_type_with_room = {Product::PRICE_ADDITION_TYPE_WITH_ROOM|intval}; var price_addition_type_independent = {Product::PRICE_ADDITION_TYPE_INDEPENDENT|intval}; diff --git a/admin/themes/default/template/controllers/normal_products/informations.tpl b/admin/themes/default/template/controllers/normal_products/informations.tpl index 74d3a5b85..10414fa35 100644 --- a/admin/themes/default/template/controllers/normal_products/informations.tpl +++ b/admin/themes/default/template/controllers/normal_products/informations.tpl @@ -232,11 +232,27 @@ var product_name_redirected = '{$product_name_redirected|escape:'html':'UTF-8'}'; -
service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE}style="display:none;"{/if}> + {* Code For Standard product working *} + {*
+ +
+ +
+
*} +
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}>
{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}
@@ -245,7 +261,20 @@
-
+
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}> +
{include file="controllers/products/multishop/checkbox.tpl" field="category_box" type="category_box"}
+ +
+
+ {$hotel_room_tree} +
+
+
+
selling_preference_type != Product::SELLING_PREFERENCE_WITH_ROOM_TYPE && $product->selling_preference_type != 0}style="display:none;"{/if}>
- - {*
- -
- -
-
*} - {*
service_product_type != Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE}style="display:none"{/if}> -
-
- {l s='Independent products can only be bought from backoffice.'} -
-
-
*}
auto_add_to_cart}style="display:none;"{/if}>
diff --git a/admin/themes/default/template/controllers/orders/_hotel_service_products_table.tpl b/admin/themes/default/template/controllers/orders/_hotel_service_products_table.tpl new file mode 100644 index 000000000..baa2e33dd --- /dev/null +++ b/admin/themes/default/template/controllers/orders/_hotel_service_products_table.tpl @@ -0,0 +1,165 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + +
+
+ + + + + + + + + + {if isset($refundReqProducts) && $refundReqProducts} + + + {/if} + {if $can_edit} + + {/if} + + + + {if $hotel_service_products} + {foreach from=$hotel_service_products item=product} + {* Include product line partial *} + {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} + {assign var=product_price value=($product['unit_price_tax_excl'])} + {else} + {assign var=product_price value=$product['unit_price_tax_incl']} + {/if} + + + + + + + + {if (isset($refundReqProducts) && $refundReqProducts)} + + + {/if} + {if ($can_edit && !$order->hasBeenDelivered())} + + + {/if} + + {/foreach} + {else} + + {assign var=colspan value=6} + {if isset($refundReqProducts) && $refundReqProducts} + {assign var=colspan value=($colspan+2)} + {/if} + {if ($can_edit)} + {assign var=colspan value=($colspan+1)} + {/if} + + + {/if} + +
{l s='Image'}{l s='Name'}{l s='Quantity'}{l s='Price (Tax excl.)'}{l s='Total Tax'}{l s='Total Price (Tax incl.)'}{l s='Refund State'}{l s='Refunded amount'}{l s='Actions'}
+ {if isset($product.image_link) && $product.image_link} + + {/if} + + + {$product['name']}{if isset($product['option_name']) && $product['option_name']} : {$product['option_name']}{/if}
+
+
+ {(int)$product['quantity']} + +

{displayPrice price=$product.total_price_tax_excl currency=$currency->id}

+

{l s='Unit price'} : {displayPrice price=$product.unit_price_tax_excl currency=$currency->id}

+
+ {displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id} + + {displayPrice price=$product.total_price_tax_incl currency=$currency->id} + + {if $product.id_service_product_order_detail|in_array:$refundReqProducts} + {if $product.is_cancelled} + {l s='Cancelled'} + {elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)} + {$product.refund_info.name|escape:'html':'UTF-8'} + {else} + -- + {/if} + {else} + -- + {/if} + + {if $product.is_refunded && isset($product.refund_info) && $product.refund_info} + {convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id} + {else} + -- + {/if} + + {* edit/delete controls *} +
+ {* *} + + + +
+ {* Update controls *} + {* + *} +
+
+ + {l s='No products added yet'} +
+
+
+
\ No newline at end of file diff --git a/admin/themes/default/template/controllers/orders/_service_product_line.tpl b/admin/themes/default/template/controllers/orders/_service_product_line.tpl deleted file mode 100644 index 3943a127e..000000000 --- a/admin/themes/default/template/controllers/orders/_service_product_line.tpl +++ /dev/null @@ -1,139 +0,0 @@ -{if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} - {assign var=product_price value=($product['unit_price_tax_excl'] + $product['ecotax'])} -{else} - {assign var=product_price value=$product['unit_price_tax_incl']} -{/if} - - {if $refund_allowed} - - - - {/if} - {* - {$data.room_num} - *} - - {if isset($product.image) && $product.image->id}{$product.image_tag}{/if} - - - - {$product['product_name']}
- {if $product.product_reference}{l s='Reference number:'} {$product.product_reference}
{/if} - {if $product.product_supplier_reference}{l s='Supplier reference:'} {$product.product_supplier_reference}{/if} -
- {* *} - - - {displayPrice price=$product.unit_price_tax_excl currency=$currency->id} - - - {(int)$product['product_quantity'] - (int)$product['customized_product_quantity']} - {if $can_edit} - - {/if} - - - {displayPrice price=$product_price * ($product['product_quantity'] - $product['customizationQuantityTotal']) currency=$currency->id} - {* {if $can_edit} - - {/if} *} - - - {* {if isset($refundReqBookings) && $refundReqBookings} - - {if isset($data.refund_info) && $data.refund_info} - {$data.refund_info.name|escape:'html':'UTF-8'} - {/if} - - - {if isset($data.refund_info) && $data.refund_info} - {convertPriceWithCurrency price=$data.refund_info.refunded_amount currency=$currency->id} - {/if} - - {/if} *} - - {* {if $data.booking_type == 1} - - {if isset($data.refund_info) && ($data.refund_info.refunded || $data.refund_info.denied)} -

--

- {else} - - {/if} - - {/if} *} - {if ($can_edit && !$order->hasBeenDelivered())} - - {if sizeof($invoices_collection)} - - {else} -   - {/if} - - - {* edit/delete controls *} -
- {* *} - - - -
- {* Update controls *} - - - - {/if} - \ No newline at end of file diff --git a/admin/themes/default/template/controllers/orders/_service_products_table.tpl b/admin/themes/default/template/controllers/orders/_service_products_table.tpl deleted file mode 100644 index 0e84d1493..000000000 --- a/admin/themes/default/template/controllers/orders/_service_products_table.tpl +++ /dev/null @@ -1,60 +0,0 @@ -{* -* Since 2010 Webkul. -* -* NOTICE OF LICENSE -* -* All right is reserved, -* Please go through this link for complete license : https://store.webkul.com/license.html -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade this module to newer -* versions in the future. If you wish to customize this module for your -* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. -* -* @author Webkul IN -* @copyright Since 2010 Webkul IN -* @license https://store.webkul.com/license.html -*} - -
-
- - - - {if $refund_allowed} - - {/if} - {* *} - - - - - - {* {if isset($refundReqBookings) && $refundReqBookings} - - - {/if} *} - {* *} - {if ($can_edit && !$order->hasBeenDelivered())} - - {/if} - - - - {if $order_service_products} - {foreach from=$order_service_products item=product} - {* Include product line partial *} - {include file='controllers/orders/_service_product_line.tpl'} - {/foreach} - {else} - {* - - *} - {/if} - {* Include product line partial *} - {include file='controllers/orders/_new_service_product.tpl'} - -
{l s='Room No.'}{l s='Image'}{l s='Name'}{l s='Unit Price (Tax excl.)'}{l s='Quantity'}{l s='Total Price (Tax incl.)'}{l s='Refund State'}{l s='Refunded amount'}{l s='Reallocate Room'}{l s='Edit Order'}
{l s='No Data Found.'}
-
-
\ No newline at end of file diff --git a/admin/themes/default/template/controllers/orders/_standalone_service_products_table.tpl b/admin/themes/default/template/controllers/orders/_standalone_service_products_table.tpl new file mode 100644 index 000000000..4dc181ef9 --- /dev/null +++ b/admin/themes/default/template/controllers/orders/_standalone_service_products_table.tpl @@ -0,0 +1,165 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + +
+
+ + + + + + + + + + {if isset($refundReqProducts) && $refundReqProducts} + + + {/if} + {if ($can_edit)} + + {/if} + + + + {if $standalone_service_products} + {foreach from=$standalone_service_products item=product} + {* Include product line partial *} + {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} + {assign var=product_price value=($product['unit_price_tax_excl'])} + {else} + {assign var=product_price value=$product['unit_price_tax_incl']} + {/if} + + + + + + + + {if (isset($refundReqProducts) && $refundReqProducts)} + + + {/if} + {if ($can_edit && !$order->hasBeenDelivered())} + + + {/if} + + {/foreach} + {else} + + {assign var=colspan value=6} + {if isset($refundReqProducts) && $refundReqProducts} + {assign var=colspan value=($colspan+2)} + {/if} + {if ($can_edit)} + {assign var=colspan value=($colspan+1)} + {/if} + + + {/if} + +
{l s='Image'}{l s='Name'}{l s='Quantity'}{l s='Price (Tax excl.)'}{l s='Total Tax'}{l s='Total Price (Tax incl.)'}{l s='Refund State'}{l s='Refunded amount'}{l s='Actions'}
+ {if isset($product.image_link) && $product.image_link} + + {/if} + + + {$product['name']}{if $product['option_name']} : {$product['option_name']}{/if}
+
+
+ {(int)$product['quantity']} + +

{displayPrice price=$product.total_price_tax_excl currency=$currency->id}

+

{l s='Unit price'} : {displayPrice price=$product.unit_price_tax_excl currency=$currency->id}

+
+ {displayPrice price=($product.total_price_tax_incl - $product.total_price_tax_excl) currency=$currency->id} + + {displayPrice price=$product.total_price_tax_incl currency=$currency->id} + + {if $product.id_service_product_order_detail|in_array:$refundReqProducts} + {if $product.is_cancelled} + {l s='Cancelled'} + {elseif isset($product.refund_info) && (!$product.refund_info.refunded || $product.refund_info.id_customization)} + {$product.refund_info.name|escape:'html':'UTF-8'} + {else} + -- + {/if} + {else} + -- + {/if} + + {if $product.is_refunded && isset($product.refund_info) && $product.refund_info} + {convertPriceWithCurrency price=$product.refund_info.refunded_amount currency=$currency->id} + {else} + -- + {/if} + + {* edit/delete controls *} +
+ {* *} + + + +
+ {* Update controls *} + {* + *} +
+
+ + {l s='No products added yet'} +
+
+
+
\ No newline at end of file diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index edf6c8cd4..67e7ed00b 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -283,6 +283,27 @@ }; updateProductPrice(params, cart_row); }) + $(document).on('change', '.product_quantity', function(e) { + var cart_row = $(this).closest('tr'); + var qty = parseInt($(this).val()); + var qtyhidden= parseInt($(this).siblings('.product_quantity_hidden').val()); + var qty_to_update = qty - qtyhidden; + if ((qty_to_update) > 0) { + var opt = 'up'; + } else { + var opt = 'down'; + } + + var params = { + id_product: parseInt($(cart_row).attr('data-id-product')), + qty: qty_to_update, + opt: opt, + id_cart: id_cart + }; + + updateQuantity(params, cart_row); + $(this).siblings('.product_quantity_hidden').val($(this).val()) + }); $('#order_message').live('change', function(e) { e.preventDefault(); $.ajax({ @@ -700,6 +721,26 @@ }); } + function updateQuantity(params, cart_row) + { + $.ajax({ + type:"POST", + url: "{$link->getAdminLink('AdminCarts')|addslashes}", + async: true, + dataType: "JSON", + data: { + ajax: "1", + token: "{getAdminToken tab='AdminCarts'}", + tab: "AdminCarts", + action: "updateProductQuantity", + params: params, + }, + success : function(response) { + // updateCartLine(response.curr_booking_info, cart_row); + // updateCartSummaryData(response.cart_info); + } + }); + } function updateCartLine(data, cart_row) { $(cart_row).find('.cart_line_total_rooms_price').html(data.amt_with_qty); diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index eff61f2de..ae4377486 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -88,89 +88,90 @@
-
-
-  {l s='Rooms Status'} -
-
-
-
- - - - - - - - - - - - - {if isset($htl_booking_order_data) && $htl_booking_order_data} - {foreach from=$htl_booking_order_data item=data} - - - - - - - +
{l s='Room'}{l s='Duration'}{l s='Check-In'}{l s='Check-Out'}{l s='Allotment'}{l s='Action'}
- {$data['room_num']}
- {$data['room_type_name']|escape:'html':'UTF-8'} -
- {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))} - {dateFormat date=$data['date_from'] full=$is_full_date} - {dateFormat date=$data['date_to'] full=$is_full_date} - - {if ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_IN']['id_status']) || ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status'])} - {l s='Checked in on'}
{dateFormat date=$data['check_in'] full=1}
- {else} - -- - {/if} -
- {if $data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status']} - {l s='Checked out on'}
{dateFormat date=$data['check_out'] full=1}
- {else} - -- - {/if} -
- {if $data['booking_type'] == $ALLOTMENT_MANUAL} - {l s='Manual'}  {if $data['comment'] != ''}{/if} - {else} - {l s='Auto'} - {/if} - - - {if $data.num_checkin_documents > 0}{$data.num_checkin_documents}{else}0{/if} - - - {if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_refunded} - {if $data.is_cancelled}{l s='Cancelled'}{else}{l s='Refunded'}{/if} - {elseif $can_edit} - - {l s='Edit'} + {if isset($htl_booking_order_data) && $htl_booking_order_data} +
+
+  {l s='Rooms Status'} +
+
+
+
+ + + + + + + + + + + + + {if isset($htl_booking_order_data) && $htl_booking_order_data} + {foreach from=$htl_booking_order_data item=data} + + + + + + + + + {/foreach} + {else} + + - {/foreach} - {else} - - - - {/if} - -
{l s='Room'}{l s='Duration'}{l s='Check-In'}{l s='Check-Out'}{l s='Allotment'}{l s='Action'}
+ {$data['room_num']}
+ {$data['room_type_name']|escape:'html':'UTF-8'} +
+ {assign var="is_full_date" value=($show_full_date && ($data['date_from']|date_format:'%D' == $data['date_to']|date_format:'%D'))} + {dateFormat date=$data['date_from'] full=$is_full_date} - {dateFormat date=$data['date_to'] full=$is_full_date} + + {if ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_IN']['id_status']) || ($data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status'])} + {l s='Checked in on'}
{dateFormat date=$data['check_in'] full=1}
+ {else} + -- + {/if} +
+ {if $data['id_status'] == $hotel_order_status['STATUS_CHECKED_OUT']['id_status']} + {l s='Checked out on'}
{dateFormat date=$data['check_out'] full=1}
+ {else} + -- + {/if} +
+ {if $data['booking_type'] == $ALLOTMENT_MANUAL} + {l s='Manual'}  {if $data['comment'] != ''}{/if} + {else} + {l s='Auto'} + {/if} + + + {if $data.num_checkin_documents > 0}{$data.num_checkin_documents}{else}0{/if} - {/if} + + {if isset($refundReqBookings) && $refundReqBookings && $data.id|in_array:$refundReqBookings && $data.is_refunded} + {if $data.is_cancelled}{l s='Cancelled'}{else}{l s='Refunded'}{/if} + {elseif $can_edit} + + {l s='Edit'} + + {/if} +
+
+ + {l s='No rooms found'} +
-
- - {l s='No rooms found'} -
-
+ {/if} +
+
-
- + {/if}
 {l s='Order'} @@ -786,31 +787,33 @@ {/if}
-
-
-  {l s='Cancellation Policies'} -
-
- {if is_array($applicable_refund_policies) && count($applicable_refund_policies)} - - {else} -
-
- - {l s='No cancellation policies applicable.'} + {if is_array($applicable_refund_policies) && count($applicable_refund_policies)} +
+
+  {l s='Cancellation Policies'} +
+
+ {if is_array($applicable_refund_policies) && count($applicable_refund_policies)} + + {else} +
+
+ + {l s='No cancellation policies applicable.'} +
-
- {/if} + {/if} +
-
+ {/if} {hook h="displayAdminOrderRight" id_order=$order->id}
@@ -822,26 +825,66 @@
-
-
-  {l s='Rooms Booking Detail'} {$order_detail_data|@count} - {if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))} - + {if $hotel_booking} +
+
+  {l s='Rooms Booking Detail'} {$order_detail_data|@count} + {if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))} + + {/if} +
+ {* by webkul this code is added for showing rooms information on the order detail page *} + {include file='controllers/orders/_rooms_informaion_table.tpl'} + + {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} + + {else} + {/if}
- {* by webkul this code is added for showing rooms information on the order detail page *} - {include file='controllers/orders/_rooms_informaion_table.tpl'} -
- {include file='controllers/orders/_service_products_table.tpl'} - {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} - - {else} - + {if $hotel_service_products || $hotelStandaloneProducts || $standaloneProducts} +
+
+  {l s='Products Detail'} {$hotel_service_products|count} + {if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))} + + {/if} +
+ {include file='controllers/orders/_hotel_service_products_table.tpl'} + + {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} + + {else} + + {/if} +
{/if} -
+ {else} + {if $standalone_service_products || $standaloneProducts} +
+
+  {l s='Products Detail'} {$standalone_service_products|count} + {if $can_edit && (!$order->hasBeenDelivered() && $currentState->id != Configuration::get('PS_OS_REFUND') && $currentState->id != Configuration::get('PS_OS_CANCELED'))} + + {/if} +
+ {include file='controllers/orders/_standalone_service_products_table.tpl'} + + {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} + + {else} + + {/if} +
+ {/if} + {/if}
@@ -873,19 +916,19 @@ {assign var=total_rooms_price_tax_incl value=$order->getTotalProductsWithTaxes(false, true)} {* Get total extra services including convenience fees prices *} - {assign var=total_services_price_tax_excl value=$order->getTotalProductsWithoutTaxes(false, false)} - {assign var=total_services_price_tax_incl value=$order->getTotalProductsWithTaxes(false, false)} + {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))} {* Get total of extra services and extra demands prices(excluding convenience fee) *} - {assign var=total_room_services_and_demands_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $totalDemandsPriceTE)} - {assign var=total_room_services_and_demands_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $totalDemandsPriceTI)} + {assign var=total_room_services_and_demands_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $totalDemandsPriceTE)} + {assign var=total_room_services_and_demands_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $totalDemandsPriceTI)} {* Get total of only convenience fees prices *} - {assign var=total_convenience_fee_tax_excl value=$order->getTotalProductsWithoutTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE, 1, Product::PRICE_ADDITION_TYPE_INDEPENDENT)} - {assign var=total_convenience_fee_tax_incl value=$order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE, 1, Product::PRICE_ADDITION_TYPE_INDEPENDENT)} + {assign var=total_convenience_fee_tax_excl value=$order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE, 1, Product::PRICE_ADDITION_TYPE_INDEPENDENT)} + {assign var=total_convenience_fee_tax_incl value=$order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE, 1, Product::PRICE_ADDITION_TYPE_INDEPENDENT)} - {assign var=order_total_price_tax_excl value=($total_rooms_price_tax_excl + $total_services_price_tax_excl + $totalDemandsPriceTE)} - {assign var=order_total_price_tax_incl value=($total_rooms_price_tax_incl + $total_services_price_tax_incl + $totalDemandsPriceTI)} + {assign var=order_total_price_tax_excl value=($total_rooms_price_tax_excl + $total_room_services_and_demands_tax_excl + $total_products_price_tax_excl)} + {assign var=order_total_price_tax_incl value=($total_rooms_price_tax_incl + $total_room_services_and_demands_tax_incl + $total_products_price_tax_incl)} {if $total_rooms_price_tax_excl} @@ -896,6 +939,15 @@ {/if} + {if $total_products_price_tax_excl > 0} + + {l s='Total products (Tax excl.)'} + + {displayPrice price=$total_products_price_tax_excl currency=$currency->id} + + + + {/if} {if isset($total_room_services_and_demands_tax_excl) && $total_room_services_and_demands_tax_excl > 0} {l s='Total Extra services (Tax excl.)'} @@ -969,6 +1021,15 @@ {/if} + {if ($total_products_price_tax_incl - $total_products_price_tax_excl) > 0} + + {l s='Products Tax'} + + {displayPrice price=($total_products_price_tax_incl - $total_products_price_tax_excl) currency=$currency->id} + + + + {/if} {if isset($total_convenience_fee_tax_excl) && $total_convenience_fee_tax_excl > 0} {l s='Convenience Fee Tax'} @@ -1013,7 +1074,7 @@ - {if isset($refundReqBookings) && $refundReqBookings} + {if (isset($refundReqBookings) && $refundReqBookings) || (isset($refundReqProducts) && $refundReqProducts)} * {l s='Refunded Amount'} diff --git a/admin/themes/default/template/controllers/orders/modals/_add_product.tpl b/admin/themes/default/template/controllers/orders/modals/_add_product.tpl new file mode 100644 index 000000000..8e19a24a2 --- /dev/null +++ b/admin/themes/default/template/controllers/orders/modals/_add_product.tpl @@ -0,0 +1,92 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + + diff --git a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl index 11c7f1b0e..f9aa2d1ba 100644 --- a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl +++ b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl @@ -18,7 +18,7 @@ *}