diff --git a/admin/themes/default/sass/partials/_forms.sass b/admin/themes/default/sass/partials/_forms.sass
index 02037f992..bd18df468 100644
--- a/admin/themes/default/sass/partials/_forms.sass
+++ b/admin/themes/default/sass/partials/_forms.sass
@@ -157,7 +157,7 @@ textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[ty
.form-group
@media (max-width: $screen-lg)
- input[type="text"],input[type="search"],input[type="password"], textarea, select
+ input[type="text"],input[type="search"],input[type="password"], textarea, select, input[type="number"]
margin: 4px 0
.input-group
margin: 4px 0
diff --git a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
index 4da11944d..a57ed0a63 100644
--- a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
@@ -49,7 +49,7 @@
- | {l s='Total cost of room types:'} |
+ {l s='Total cost:'} |
{displayWtPriceWithCurrency price=$total_products currency=$currency} |
{if $total_discounts != 0}
diff --git a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl
index fc77392b8..e3405fa99 100644
--- a/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl
+++ b/admin/themes/default/template/controllers/orders/_current_cart_details_data.tpl
@@ -118,22 +118,14 @@
{/if}
- {if $data.feature_price_diff != 0}
- {assign var=shown_room_type_price value=$data.feature_price_tax_excl}
- {else}
- {assign var=shown_room_type_price value=$data.product_price_tax_excl}
- {/if}
+ {assign var=shown_room_type_price value=$data.feature_price_tax_excl}
{$currency->prefix}{$currency->suffix}
|
- {if (isset($data.extra_demands) && $data.extra_demands) || (isset($data.additional_service) && $data.additional_service)}
- {displayPrice price=($data.demand_price + $data.additional_service_price + $data.additional_services_auto_add_price)|escape:'html':'UTF-8'}
- {else}
- {displayPrice price=0}
- {/if}
+ {displayPrice price=($data.demand_price + $data.additional_service_price + $data.additional_services_auto_add_price)|escape:'html':'UTF-8'}
|
{*
{displayPrice price=$data.amt_with_qty} | *}
@@ -148,12 +140,10 @@
- {if (isset($data.extra_demands) && $data.extra_demands) || isset($data.additional_service) && $data.additional_service}
-
-
- {l s='Services'}
-
- {/if}
+
+
+ {l s='Services'}
+
{/foreach}
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
index ff1a71380..935498f70 100644
--- a/admin/themes/default/template/controllers/orders/_hotel_service_products_table.tpl
+++ b/admin/themes/default/template/controllers/orders/_hotel_service_products_table.tpl
@@ -111,27 +111,34 @@
{* edit/delete controls *}
-
- {*
+ {else}
+
+ {*
+
+ {l s='Delete'}
+ *}
+
+
+ {l s='Edit'}
+
+
+
+
+
+
+ {/if}
{* Update controls *}
{*
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
index b4825ad7a..34ea13b93 100644
--- a/admin/themes/default/template/controllers/orders/_standalone_service_products_table.tpl
+++ b/admin/themes/default/template/controllers/orders/_standalone_service_products_table.tpl
@@ -111,27 +111,34 @@
|
{* edit/delete controls *}
-
- {*
+ {if isset($refundReqProducts) && $refundReqProducts && $product.id_service_product_order_detail|in_array:$refundReqProducts && $product.is_cancelled}
+
{l s='Delete'}
- *}
-
-
- {l s='Edit'}
-
-
-
-
-
+ {else}
+
+ {*
+
+ {l s='Delete'}
+ *}
+
+
+ {l s='Edit'}
+
+
+
+
+
+
+ {/if}
{* Update controls *}
{*
diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl
index ee9e51d0b..0451cd31d 100644
--- a/admin/themes/default/template/controllers/orders/form.tpl
+++ b/admin/themes/default/template/controllers/orders/form.tpl
@@ -699,6 +699,7 @@
success : function(response) {
updateCartLine(response.curr_booking_info, cart_row);
updateCartSummaryData(response.cart_info);
+ updateCartVouchers(response.cart_info.summary.discounts);
}
});
}
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 6327e9f76..c0c841758 100644
--- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -595,7 +595,7 @@
{$customer->date_add|date_format:"%d %b, %Y"} ({l s='Member since'})
{$customerStats['nb_orders']|intval} ({l s='Total valid order placed'})
- {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_spent']|floatval, $currency), 2) currency=$currency->id} ({l s='Total spent since registration'})
+ {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_spent']|floatval, $currency), _PS_PRICE_DISPLAY_PRECISION_) currency=$currency->id} ({l s='Total spent since registration'})
{if Configuration::get('PS_B2B_ENABLE')}
{$customer->siret} ({l s='Siret'})
{$customer->ape|date_format:"%d %b, %Y"} ({l s='APE'})
diff --git a/admin/themes/default/template/controllers/orders/modals/_add_order_extra_services_tab_content.tpl b/admin/themes/default/template/controllers/orders/modals/_add_order_extra_services_tab_content.tpl
index c0fb1c524..048757a04 100644
--- a/admin/themes/default/template/controllers/orders/modals/_add_order_extra_services_tab_content.tpl
+++ b/admin/themes/default/template/controllers/orders/modals/_add_order_extra_services_tab_content.tpl
@@ -47,11 +47,18 @@
{foreach $serviceProducts as $product}
+ {if isset($selectedRoomServiceProduct['selected_service']) && $selectedRoomServiceProduct['selected_service'] && ($product['id_product']|array_key_exists:$selectedRoomServiceProduct['selected_service'])}
+ {assign var='serviceSelected' value=true}
+ {$product.price_tax_incl = $selectedRoomServiceProduct['selected_service'][$product['id_product']]['unit_price_tax_incl']}
+ {$product.price_tax_exc = $selectedRoomServiceProduct['selected_service'][$product['id_product']]['unit_price_tax_excl']}
+ {else}
+ {assign var='serviceSelected' value=false}
+ {/if}
|
-
+
-
+
|
{$product['name']|escape:'html':'UTF-8'}
@@ -67,9 +74,9 @@
|
{if $product.allow_multiple_quantity}
@@ -150,6 +157,7 @@
{hook h='displayAdminOrderAddRoomFormFieldsBefore'}
-
{if $order->hasInvoice()}
-
+
|
@@ -55,6 +56,7 @@
{displayPrice price=$demand['total_price_tax_excl'] currency=$orderCurrency} |
+ {displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency} |
|
{/foreach}
@@ -143,8 +145,9 @@
| {l s='Name'} |
- {l s='Unit Price'} |
- {l s='Total Price'} |
+ {l s='Unit Price (tax excl.)'} |
+ {l s='Total Price (tax excl.)'} |
+ {l s='Total Price (tax incl.)'} |
@@ -160,6 +163,7 @@
{/if}
{displayPrice price=$demand['total_price_tax_excl'] currency=$orderCurrency} |
+ {displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency} |
{/foreach}
{/foreach}
diff --git a/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl b/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl
index 20dc76ffc..a1013e732 100644
--- a/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl
+++ b/admin/themes/default/template/controllers/orders/modals/_extra_services_service_products_tab_content.tpl
@@ -44,6 +44,7 @@
{l s='Quantity'} |
{l s='Unit Price (tax excl.)'} |
{l s='Total Price (tax excl.)'} |
+ {l s='Total Price (tax incl.)'} |
{l s='Action'} |
@@ -87,6 +88,7 @@
{displayPrice price=$service['total_price_tax_excl']|escape:'html':'UTF-8' currency=$orderCurrency} |
+ {displayPrice price=$service['total_price_tax_incl']|escape:'html':'UTF-8' currency=$orderCurrency} |
|
{/foreach}
@@ -214,6 +216,7 @@
{foreach $additionalServices['additional_services'] as $service}
|
- {$service['id_product']|escape:'html':'UTF-8'}
+ {$service['id_product']|escape:'html':'UTF-8'}{if !$service['product_deleted']} {/if}
|
{$service['name']|escape:'html':'UTF-8'} |
@@ -281,6 +285,9 @@
|
{displayPrice price=$service['total_price_tax_excl'] currency=$orderCurrency}
|
+
+ {displayPrice price=$service['total_price_tax_incl'] currency=$orderCurrency}
+ |
{/foreach}
diff --git a/admin/themes/default/template/controllers/orders/modals/_order_payment_form.tpl b/admin/themes/default/template/controllers/orders/modals/_order_payment_form.tpl
index 2dbd7e3b0..b4210726c 100644
--- a/admin/themes/default/template/controllers/orders/modals/_order_payment_form.tpl
+++ b/admin/themes/default/template/controllers/orders/modals/_order_payment_form.tpl
@@ -73,7 +73,7 @@
{if count($invoices_collection) > 0}
- |
-