diff --git a/admin-dev/themes/default/css/admin-theme.css b/admin-dev/themes/default/css/admin-theme.css
index bfe87649c..8eb2216dc 100644
--- a/admin-dev/themes/default/css/admin-theme.css
+++ b/admin-dev/themes/default/css/admin-theme.css
@@ -8312,7 +8312,7 @@ tr.highlighted td {
.nav-tabs {
border-bottom: none; }
/* line 681, admin-theme.sass */
-.nav-tabs li.active a.tab-page {
+.nav-tabs li.active a, .nav-tabs li.active a:hover {
background-color: white; }
/* line 684, admin-theme.sass */
diff --git a/admin-dev/themes/default/css/admin-theme.sass b/admin-dev/themes/default/css/admin-theme.sass
index 906d63f45..255ea6906 100755
--- a/admin-dev/themes/default/css/admin-theme.sass
+++ b/admin-dev/themes/default/css/admin-theme.sass
@@ -678,7 +678,7 @@ tr.highlighted td
.nav-tabs
border-bottom: none
li.active
- a.tab-page
+ a, a:hover
background-color: white
.tree-actions
diff --git a/admin-dev/themes/default/template/controllers/orders/_discount_form.tpl b/admin-dev/themes/default/template/controllers/orders/_discount_form.tpl
index d59685c5f..119ecefb8 100644
--- a/admin-dev/themes/default/template/controllers/orders/_discount_form.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_discount_form.tpl
@@ -54,7 +54,6 @@
{$currency->sign}
-
%
diff --git a/admin-dev/themes/default/template/controllers/orders/_documents.tpl b/admin-dev/themes/default/template/controllers/orders/_documents.tpl
index 33221b48f..ecf0486ea 100644
--- a/admin-dev/themes/default/template/controllers/orders/_documents.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_documents.tpl
@@ -69,13 +69,13 @@
{if get_class($document) eq 'OrderInvoice'}
{if isset($document->is_delivery)}
-
+
{else}
-
+
{/if}
{elseif get_class($document) eq 'OrderSlip'}
-
+
{/if}
{if get_class($document) eq 'OrderInvoice'}
@@ -90,13 +90,8 @@
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $current_id_lang)}{'%06d'|sprintf:$document->id}
- {/if}
-
-
-
- {l s='See the document'}
-
-
+ {/if}
+
{if get_class($document) eq 'OrderInvoice'}
@@ -121,12 +116,14 @@
{if get_class($document) eq 'OrderInvoice'}
{if !isset($document->is_delivery)}
+
{if $document->getRestPaid()}
{l s='Enter Payment'}
{/if}
+
{if $document->note eq ''}
@@ -136,6 +133,7 @@
{l s='Edit note'}
{/if}
+
{/if}
{/if}
diff --git a/admin-dev/themes/default/template/controllers/orders/_new_product.tpl b/admin-dev/themes/default/template/controllers/orders/_new_product.tpl
index 266b1e856..1e5ab206e 100644
--- a/admin-dev/themes/default/template/controllers/orders/_new_product.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/_new_product.tpl
@@ -49,7 +49,7 @@
-
+
- {if ($order->hasBeenPaid())}
{/if}
- {if $display_warehouse}
{/if}
- {if ($order->hasBeenDelivered())}
{/if}
+ {if ($order->hasBeenPaid())}
{/if}
+ {if $display_warehouse}
{/if}
+ {if ($order->hasBeenDelivered())}
{/if}
0
{displayPrice price=0 currency=$currency->id}
{if sizeof($invoices_collection)}
-
+
{foreach from=$invoices_collection item=invoice}
{$invoice->getInvoiceNumberFormatted($current_id_lang)}
@@ -101,17 +101,29 @@
+
- {l s='New invoice information'}
- {l s='Carrier'}
-
- {$carrier->name}
-
-
diff --git a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
index 210f22430..fe47a3685 100755
--- a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
+++ b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl
@@ -41,14 +41,12 @@
var use_taxes = {if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}true{else}false{/if};
var token = "{$smarty.get.token|escape:'htmlall':'UTF-8'}";
var stock_management = {$stock_management|intval};
-
var txt_add_product_stock_issue = "{l s='Are you sure you want to add this quantity?' js=1}";
var txt_add_product_new_invoice = "{l s='Are you sure you want to create a new invoice?' js=1}";
var txt_add_product_no_product = "{l s='Error: No product has been selected' js=1}";
var txt_add_product_no_product_quantity = "{l s='Error: Quantity of products must be set' js=1}";
var txt_add_product_no_product_price = "{l s='Error: Product price must be set' js=1}";
var txt_confirm = "{l s='Are you sure?' js=1}";
-
var statesShipped = new Array();
{foreach from=$states item=state}
{if (!$currentState->shipped && $state['shipped'])}
@@ -62,7 +60,6 @@
{$hook_invoice}
{/if}
-
+
+
+ {hook h="displayAdminOrder" id_order=$order->id}
+
+
+
+ {if $customer->id}
- {if (count($invoices_collection))}
-
-
- {l s='View invoice'}
-
+
+
+ {l s='Customer information'}
+
+
+ {if ($customer->isGuest())}
+
+ {l s='This order has been placed by a guest.'}
+ {if (!Customer::customerExists($customer->email))}
+
+ {else}
+
+
+ {l s='A registered customer account has already claimed this email address'}
+
+
+ {/if}
{else}
-
-
-
-
- {l s='No invoice'}
+
+ {l s='Account registered:'} {dateFormat date=$customer->date_add full=true}
+ {l s='Valid orders placed:'} {$customerStats['nb_orders']}
+ {l s='Total spent since registration:'} {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}
+
{/if}
- {if (($currentState && $currentState->delivery) || $order->delivery_number)}
-
-
- {l s='View delivery slip'}
-
- {else}
-
-
-
-
- {l s='No delivery slip'}
- {/if}
-
-
- {l s='Print order'}
-
+
+ {/if}
+
+
+
+
+
+ {l s='Documents'}
+
+
+ {* Include document template *}
+ {include file='controllers/orders/_documents.tpl'}
-
- {if $customer->id}
-
-
-
- {l s='Customer information'}
-
-
- {if ($customer->isGuest())}
+
+
- {l s='This order has been placed by a guest.'}
- {if (!Customer::customerExists($customer->email))}
-
- {else}
-
-
- {l s='A registered customer account has already claimed this email address'}
-
-
- {/if}
-
- {else}
-
- {l s='Account registered:'} {dateFormat date=$customer->date_add full=true}
- {l s='Valid orders placed:'} {$customerStats['nb_orders']}
- {l s='Total spent since registration:'} {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}
-
- {/if}
-
-
- {/if}
-
+
+
+
{if (sizeof($sources))}
@@ -238,28 +280,10 @@
{/if}
-
-
- {hook h="displayAdminOrder" id_order=$order->id}
-
-
+
{if count($order->getBrother()) > 0}
-
+
{l s='Linked orders'}
@@ -301,19 +325,8 @@
{/foreach}
-
+
{/if}
-
-
-
-
-
- {l s='Documents'}
-
-
- {* Include document template *}
- {include file='controllers/orders/_documents.tpl'}
-
@@ -322,7 +335,6 @@
{l s='Payment'}
-
{if count($order->getOrderPayments()) > 0}
{l s='Warning'}
@@ -437,12 +449,18 @@
-
-
- {foreach from=$currencies item=current_currency}
- id} selected="selected"{/if}>{$current_currency['sign']}
- {/foreach}
-
+
{if count($invoices_collection) > 0}
@@ -456,14 +474,13 @@
- {l s='Add'}
+ {l s='Save'}
-
{if (!$order->valid && sizeof($currencies) > 1)}
{/if}
-
@@ -538,12 +554,10 @@
{/if}
{include file='controllers/orders/_shipping.tpl'}
-
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
-
@@ -597,14 +611,12 @@
{else}
{l s='No merchandise returned yet.'}
{/if}
-
{if $carrierModuleCall}
{$carrierModuleCall}
{/if}
{/if}
-
{if !$order->isVirtual()}
@@ -778,15 +790,70 @@
{if $can_edit}
- {if !$order->hasBeenDelivered()}
+ {if !$order->hasBeenDelivered()}
{l s='Add a product'}
+ {/if}
+
+
+ {l s='Add a new discount'}
+
{/if}
- {/if}
+
+
+
+ {if (sizeof($discounts) || $can_edit)}
+
+
+
+
+
+ {l s='Discount name'}
+
+
+
+
+ {l s='Value'}
+
+
+ {if $can_edit}
+
+ {/if}
+
+
+
+ {foreach from=$discounts item=discount}
+
+ {$discount['name']}
+
+ {if $discount['value'] != 0.00}
+ -
+ {/if}
+ {displayPrice price=$discount['value'] currency=$currency->id}
+
+ {if $can_edit}
+
+
+
+ {l s='Delete voucher'}
+
+
+ {/if}
+
+ {/foreach}
+
+
+
+ {include file='controllers/orders/_discount_form.tpl'}
+
+ {/if}
+
+
+
@@ -838,9 +905,9 @@
- {l s='Total'}
+ {l s='Total'}
- {displayPrice price=$order->total_paid_tax_incl currency=$currency->id}
+ {displayPrice price=$order->total_paid_tax_incl currency=$currency->id}
@@ -901,65 +968,6 @@
-
-
-{if (sizeof($discounts) || $can_edit)}
-
-
- {l s="Discounts"}
-
-
-
-
-
-
- {l s='Discount name'}
-
-
-
-
- {l s='Value'}
-
-
- {if $can_edit}
-
- {/if}
-
-
-
- {foreach from=$discounts item=discount}
-
- {$discount['name']}
-
- {if $discount['value'] != 0.00}
- -
- {/if}
- {displayPrice price=$discount['value'] currency=$currency->id}
-
- {if $can_edit}
-
-
-
- {l s='Delete voucher'}
-
-
- {/if}
-
- {/foreach}
-
-
- {if $can_edit}
-
-
- {l s='Add a new discount'}
-
-
- {include file='controllers/orders/_discount_form.tpl'}
-
- {/if}
-{/if}
-
-