1{*
2* 2007-2016 PrestaShop
3*
4* NOTICE OF LICENSE
5*
6* This source file is subject to the Academic Free License (AFL 3.0)
7* that is bundled with this package in the file LICENSE.txt.
8* It is also available through the world-wide-web at this URL:
9* http://opensource.org/licenses/afl-3.0.php
10* If you did not receive a copy of the license and are unable to
11* obtain it through the world-wide-web, please send an email
12* to license@prestashop.com so we can send you a copy immediately.
13*
14* DISCLAIMER
15*
16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
17* versions in the future. If you wish to customize PrestaShop for your
18* needs please refer to http://www.prestashop.com for more information.
19*
20*  @author PrestaShop SA <contact@prestashop.com>
21*  @copyright  2007-2016 PrestaShop SA
22*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
23*  International Registered Trademark & Property of PrestaShop SA
24*}
25<table id="total-tab" width="100%">
26
27	{if $order_slip->shipping_cost_amount > 0}
28		<tr>
29			{if $tax_excluded_display}
30				<td class="grey" width="70%">{l s='Shipping (Tax Excl.)' pdf='true'}</td>
31			{else}
32				<td class="grey" width="70%">{l s='Shipping (Tax Incl.)' pdf='true'}</td>
33			{/if}
34			<td class="white" width="30%">
35				- {displayPrice currency=$order->id_currency price=$order_slip->shipping_cost_amount}
36			</td>
37		</tr>
38	{/if}
39
40	{if isset($order_details) && count($order_details) > 0}
41		{if (($order->total_paid_tax_incl - $order->total_paid_tax_excl) > 0)}
42			{if $tax_excluded_display}
43				<tr>
44					<td class="grey" width="70%">
45						{l s='Product Total (Tax Excl.)' pdf='true'}
46					</td>
47					<td class="white" width="30%">
48						- {displayPrice currency=$order->id_currency price=$order->total_products}
49					</td>
50				</tr>
51			{else}
52				<tr>
53					<td class="grey" width="70%">
54						{l s='Product Total (Tax Incl.)' pdf='true'}
55					</td>
56					<td class="white" width="30%">
57						- {displayPrice currency=$order->id_currency price=$order->total_products_wt}
58					</td>
59				</tr>
60			{/if}
61		{else}
62			<tr>
63				<td class="grey" width="70%">
64					{l s='Product Total' pdf='true'}
65				</td>
66				<td class="white" width="30%">
67					- {displayPrice currency=$order->id_currency price=$order->total_products}
68				</td>
69			</tr>
70		{/if}
71	{/if}
72
73	{if ($order->total_paid_tax_incl - $order->total_paid_tax_excl) > 0}
74		<tr>
75			<td class="grey" width="70%">
76				{l s='Total Tax' pdf='true'}
77			</td>
78			<td class="white" width="30%">
79				- {displayPrice currency=$order->id_currency price=($order->total_paid_tax_incl - $order->total_paid_tax_excl)}
80			</td>
81		</tr>
82	{/if}
83
84	<tr class="bold">
85		<td class="grey" width="70%">
86			{if $tax_excluded_display}{l s='Total (Tax Excl.)' pdf='true'}{else}{l s='Total (Tax Incl.)' pdf='true'}{/if}
87		</td>
88		<td class="white" width="30%">
89			{if $total_cart_rule}
90				{assign var=total_paid value=0}
91				{if $tax_excluded_display}
92					{$total_paid = $order->total_paid_tax_excl - $total_cart_rule}
93				{else}
94					{$total_paid = $order->total_paid_tax_incl - $total_cart_rule}
95				{/if}
96				- {displayPrice currency=$order->id_currency price=$total_paid}
97			{else}
98				{if $tax_excluded_display}
99					- {displayPrice currency=$order->id_currency price=$order->total_paid_tax_excl}
100				{else}
101					- {displayPrice currency=$order->id_currency price=$order->total_paid_tax_incl}
102				{/if}
103			{/if}
104		</td>
105	</tr>
106
107</table>
108