forked from Qloapps/QloApps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvoice.product-tab.tpl
133 lines (132 loc) · 4.56 KB
/
invoice.product-tab.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
{if $display_product_images}
<th class="product header small">{l s='Room Image' pdf='true'}</th>
{/if}
<th class="product header small">{l s='Room Description' pdf='true'}</th>
<th class="product header small">{l s='Room Capcity' pdf='true'}</th>
<th class="product header small">{l s='Tax Rate(s)' pdf='true'}</th>
{* {if isset($layout.before_discount)}
<th class="product header small">{l s='Base price' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th>
{/if} *}
<th class="product header small" width="{$layout.unit_price_tax_excl.width}%">{l s='Unit Price' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th>
<th class="product header small">{l s='Rooms Qty' pdf='true'}</th>
<th class="product header small">{l s='Check-in Date' pdf='true'}</th>
<th class="product header small">{l s='Check-out Date' pdf='true'}</th>
<th class="product header small">{l s='Total' pdf='true'} <br /> {l s='(Tax excl.)' pdf='true'}</th>
{if isset($refunded_rooms) && $refunded_rooms}
<th class="product header small">{l s='Refund Status' pdf='true'}</th>
{/if}
</tr>
</thead>
<tbody>
{if isset($cart_htl_data)}
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
{if $display_product_images}
<td class="cart_product">
<img src="{$data_v['cover_img']}" class="thumbnail" />
</td>
{/if}
<td class="product center">
<p class="product-name">
{$data_v['name']}
</p>
</td>
<td>
<p class="text-left">
{$data_v['adult']} {l s='Adults'}, {$data_v['children']} {l s='Children'}
</p>
</td>
<td class="product center">
{$data_v['order_detail_tax_label']}
</td>
<td class="product center">
<p class="text-center">
{displayPrice currency=$order->id_currency price=$rm_v['paid_unit_price_tax_incl']}
</p>
</td>
<td class="product center">
<p class="text-left">
{$rm_v['num_rm']}
</p>
</td>
<td class="product center">
<p>
{$rm_v['data_form']|date_format:"%d-%m-%Y"}
</p>
</td>
<td class="product center">
<p>
{$rm_v['data_to']|date_format:"%d-%m-%Y"}
</p>
</td>
<td class="product center">
<p>
{displayPrice currency=$order->id_currency price=$rm_v['amount']}
</p>
</td>
{if isset($refunded_rooms) && $refunded_rooms}
{if isset($rm_v['stage_name']) && $rm_v['stage_name'] == 'Refunded'}
<td class="product center">
<p style="background-color:green; padding-left:5px;">
{l s='Refunded' pdf='true'}
</p>
</td>
{else}
--
{/if}
{/if}
</tr>
{/foreach}
{/foreach}
{/if}
{* END PRODUCTS *}
{* CART RULES *}
{* {assign var="shipping_discount_tax_incl" value="0"}
{foreach from=$cart_rules item=cart_rule name="cart_rules_loop"}
{if $smarty.foreach.cart_rules_loop.first}
<tr class="discount">
<th class="header" colspan="{$layout._colCount}">
{l s='Discounts' pdf='true'}
</th>
</tr>
{/if}
<tr class="discount">
<td class="white right" colspan="{$layout._colCount - 1}">
{$cart_rule.name}
</td>
<td class="right white">
- {displayPrice currency=$order->id_currency price=$cart_rule.value_tax_excl}
</td>
</tr>
{/foreach} *}
</tbody>
</table>