Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

12
web/pdf/.htaccess Normal file
View File

@@ -0,0 +1,12 @@
<FilesMatch "\.tpl$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>

View File

@@ -0,0 +1,45 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="addresses-tab" cellspacing="0" cellpadding="0">
<tr>
<td width="33%"><span class="bold"> </span><br/><br/>
{$order_invoice->shop_address}
</td>
{if !empty($invoice_address)}
<td width="33%">{if $delivery_address}<span class="bold">{l s='Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$delivery_address}
{/if}
</td>
<td width="33%"><span class="bold">{l s='Billing Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$invoice_address}
</td>
{else}
<td width="66%">{if $delivery_address}<span class="bold">{l s='Billing & Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$delivery_address}
{/if}
</td>
{/if}
</tr>
</table>

View File

@@ -0,0 +1,45 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!--
<table id="payment-tab" width="100%" cellpadding="4" cellspacing="0">
<tr>
<td class="payment center small grey bold" width="44%">{l s='Payment Method' d='Shop.Pdf' pdf='true'}</td>
<td class="payment left white" width="56%">
<table width="100%" border="0">
{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
<tr>
<td class="right small">{$payment->payment_method}</td>
<td class="right small">{displayPrice currency=$payment->id_currency price=$payment->amount}</td>
</tr>
{foreachelse}
<tr>
<td>{l s='No payment' d='Shop.Pdf' pdf='true'}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
//-->

View File

@@ -0,0 +1,116 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th class="product header small" width="25%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="65%">{l s='Product' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="10%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
<!-- PRODUCTS -->
{foreach $order_details as $order_detail}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
<td class="product left">
{if empty($order_detail.product_reference)}
---
{else}
{$order_detail.product_reference}
{/if}
</td>
<td class="product left">
{if $display_product_images}
<table width="100%">
<tr>
<td width="15%">
{if isset($order_detail.image) && $order_detail.image->id}
{$order_detail.image_tag}
{/if}
</td>
<td width="5%">&nbsp;</td>
<td width="80%">
{$order_detail.product_name}
</td>
</tr>
</table>
{else}
{$order_detail.product_name}
{/if}
</td>
<td class="product center">
{$order_detail.product_quantity}
</td>
</tr>
{foreach $order_detail.customizedDatas as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}
<tr class="customization_data {$bgcolor_class}">
<td class="center"> &nbsp;</td>
<td>
{if isset($customization.datas[Product::CUSTOMIZE_TEXTFIELD]) && count($customization.datas[Product::CUSTOMIZE_TEXTFIELD]) > 0}
<table style="width: 100%;">
{foreach $customization.datas[Product::CUSTOMIZE_TEXTFIELD] as $customization_infos}
<tr>
<td style="width: 30%;">
{$customization_infos.name|string_format:{l s='%s:' d='Shop.Pdf' pdf='true'}}
</td>
<td>{$customization_infos.value}</td>
</tr>
{/foreach}
</table>
{/if}
{if isset($customization.datas[Product::CUSTOMIZE_FILE]) && count($customization.datas[Product::CUSTOMIZE_FILE]) > 0}
<table style="width: 100%;">
<tr>
<td style="width: 30%;">{l s='image(s):' d='Shop.Pdf' pdf='true'}</td>
<td>{count($customization.datas[Product::CUSTOMIZE_FILE])}</td>
</tr>
</table>
{/if}
</td>
<td class="center">
({if $customization.quantity == 0}1{else}{$customization.quantity}{/if})
</td>
</tr>
{/foreach}
{/foreach}
{/foreach}
<!-- END PRODUCTS -->
</tbody>
</table>

View File

@@ -0,0 +1,169 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{assign var=color_header value="#F0F0F0"}
{assign var=color_border value="#000000"}
{assign var=color_border_lighter value="#CCCCCC"}
{assign var=color_line_even value="#FFFFFF"}
{assign var=color_line_odd value="#F9F9F9"}
{assign var=font_size_text value="9pt"}
{assign var=font_size_header value="9pt"}
{assign var=font_size_product value="9pt"}
{assign var=height_header value="20px"}
{assign var=table_padding value="4px"}
<style>
table, th, td {
margin: 0!important;
padding: 0!important;
vertical-align: middle;
font-size: {$font_size_text};
white-space: nowrap;
}
table.product {
border: 1px solid {$color_border};
border-collapse: collapse;
}
table#addresses-tab tr td {
font-size: large;
}
table#summary-tab {
padding: {$table_padding};
border: 1pt solid {$color_border};
}
table#payment-tab {
padding: {$table_padding};
border: 1px solid {$color_border};
}
th.product {
border-bottom: 1px solid {$color_border};
}
tr.discount th.header {
border-top: 1px solid {$color_border};
}
tr.product td {
border-bottom: 1px solid {$color_border_lighter};
}
tr.color_line_even {
background-color: {$color_line_even};
}
tr.color_line_odd {
background-color: {$color_line_odd};
}
tr.customization_data td {
}
td.product {
vertical-align: middle;
font-size: {$font_size_product};
}
th.header {
font-size: {$font_size_header};
height: {$height_header};
background-color: {$color_header};
vertical-align: middle;
text-align: center;
font-weight: bold;
}
th.header-right {
font-size: {$font_size_header};
height: {$height_header};
background-color: {$color_header};
vertical-align: middle;
text-align: right;
font-weight: bold;
}
th.payment {
background-color: {$color_header};
vertical-align: middle;
font-weight: bold;
}
tr.separator td {
border-top: 1px solid #000000;
}
.left {
text-align: left;
}
.fright {
float: right;
}
.right {
text-align: right;
}
.center {
text-align: center;
}
.bold {
font-weight: bold;
}
.border {
border: 1px solid black;
}
.no_top_border {
border-top:hidden;
border-bottom:1px solid black;
border-left:1px solid black;
border-right:1px solid black;
}
.grey {
background-color: {$color_header};
}
/* This is used for the border size */
.white {
background-color: #FFFFFF;
}
.big,
tr.big td{
font-size: 110%;
}
.small {
font-size:small;
}
</style>

View File

@@ -0,0 +1,41 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order Date' d='Shop.Pdf' pdf='true'}</th>
{if isset($carrier)}
<th class="header small" valign="middle">{l s='Carrier' d='Shop.Pdf' pdf='true'}</th>
{/if}
</tr>
<tr>
<td class="center small white">{$order->getUniqReference()}</td>
<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
{if isset($carrier)}
<td class="center small white">{$carrier->name}</td>
{/if}
</tr>
</table>

91
web/pdf/delivery-slip.tpl Normal file
View File

@@ -0,0 +1,91 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Addresses -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="12">
{$summary_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<!-- Products -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<tr>
<td colspan="7" class="left">
{$payment_tab}
</td>
<td colspan="5">&nbsp;</td>
</tr>
<!-- Hook -->
{if isset($HOOK_DISPLAY_PDF)}
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$HOOK_DISPLAY_PDF}
</td>
</tr>
{/if}
</table>

56
web/pdf/footer.tpl Normal file
View File

@@ -0,0 +1,56 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table style="width: 100%;">
<tr>
<td style="text-align: center; font-size: 6pt; color: #444; width:100%;">
{if $available_in_your_account}
{l s='An electronic version of this invoice is available in your account. To access it, log in to our website using your e-mail address and password (which you created when placing your first order).' d='Shop.Pdf' pdf='true'}
<br />
{/if}
{$shop_address|escape:'html':'UTF-8'}<br />
{if !empty($shop_phone) OR !empty($shop_fax)}
{l s='For more assistance, contact Support:' d='Shop.Pdf' pdf='true'}<br />
{if !empty($shop_phone)}
{l s='Tel: %s' sprintf=[$shop_phone|escape:'html':'UTF-8'] d='Shop.Pdf' pdf='true'}
{/if}
{if !empty($shop_fax)}
{l s='Fax: %s' sprintf=[$shop_fax|escape:'html':'UTF-8'] d='Shop.Pdf' pdf='true'}
{/if}
<br />
{/if}
{if isset($shop_details)}
{$shop_details|escape:'html':'UTF-8'}<br />
{/if}
{if isset($free_text)}
{$free_text|escape:'html':'UTF-8'}<br />
{/if}
</td>
</tr>
</table>

49
web/pdf/header.tpl Normal file
View File

@@ -0,0 +1,49 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table style="width: 100%">
<tr>
<td style="width: 50%">
{if $logo_path}
<img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" />
{/if}
</td>
<td style="width: 50%; text-align: right;">
<table style="width: 100%">
<tr>
<td style="font-weight: bold; font-size: 14pt; color: #444; width: 100%;">{if isset($header)}{$header|escape:'html':'UTF-8'|upper}{/if}</td>
</tr>
<tr>
<td style="font-size: 14pt; color: #9E9F9E">{$date|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<td style="font-size: 14pt; color: #9E9F9E">{$title|escape:'html':'UTF-8'}</td>
</tr>
</table>
</td>
</tr>
</table>

35
web/pdf/index.bak Normal file
View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

35
web/pdf/index.php Normal file
View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

131
web/pdf/invoice-b2b.tpl Normal file
View File

@@ -0,0 +1,131 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Invoicing -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<!-- TVA Info -->
<tr>
<td colspan="12">
{$summary_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<!-- Product -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<!-- TVA -->
<tr>
<!-- Code TVA -->
<td colspan="6" class="left">
{$tax_tab}
</td>
<td colspan="1">&nbsp;</td>
<!-- Calcule TVA -->
<td colspan="5" rowspan="5" class="right">
{$total_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="6" class="left">
{$payment_tab}
</td>
<td colspan="1">&nbsp;</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="7" class="left small">
<table>
<tr>
<td>
<p>{$legal_free_text|escape:'html':'UTF-8'|nl2br}</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- Hook -->
{if isset($HOOK_DISPLAY_PDF)}
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$HOOK_DISPLAY_PDF}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,35 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="addresses-tab" cellspacing="0" cellpadding="0">
<tr>
<td width="50%">{if $delivery_address}<span class="bold">{l s='Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$delivery_address}
{/if}
</td>
<td width="50%"><span class="bold">{l s='Billing Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$invoice_address}
</td>
</tr>
</table>

View File

@@ -0,0 +1,43 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($order_invoice->note) && $order_invoice->note}
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="6" class="left">
<table id="note-tab" style="width: 100%">
<tr>
<td class="grey">{l s='Note' d='Shop.Pdf' pdf='true'}</td>
</tr>
<tr>
<td class="note">{$order_invoice->note|nl2br}</td>
</tr>
</table>
</td>
<td colspan="1">&nbsp;</td>
</tr>
{/if}

View File

@@ -0,0 +1,39 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="payment-tab" width="100%">
<tr>
<td class="payment center small grey bold" width="44%">{l s='Payment Method' d='Shop.Pdf' pdf='true'}</td>
<td class="payment left white" width="56%">
<table width="100%" border="0">
{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
<tr>
<td class="right small">{$payment->payment_method}</td>
<td class="right small">{displayPrice currency=$payment->id_currency price=$payment->amount}</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>

View File

@@ -0,0 +1,172 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th class="product header small" width="{$layout.reference.width}%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="{$layout.product.width}%">{l s='Product' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="{$layout.tax_code.width}%">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th>
{if isset($layout.before_discount)}
<th class="product header small" width="{$layout.unit_price_tax_excl.width}%">{l s='Base price' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th>
{/if}
<th class="product header-right small" width="{$layout.unit_price_tax_excl.width}%">{l s='Unit Price' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="{$layout.quantity.width}%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th>
<th class="product header-right small" width="{$layout.total_tax_excl.width}%">{l s='Total' d='Shop.Pdf' pdf='true'} <br /> {l s='(Tax excl.)' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
<!-- PRODUCTS -->
{foreach $order_details as $order_detail}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
<td class="product center">
{$order_detail.product_reference}
</td>
<td class="product left">
{if $display_product_images}
<table width="100%">
<tr>
<td width="15%">
{if isset($order_detail.image) && $order_detail.image->id}
{$order_detail.image_tag}
{/if}
</td>
<td width="5%">&nbsp;</td>
<td width="80%">
{$order_detail.product_name}
</td>
</tr>
</table>
{else}
{$order_detail.product_name}
{/if}
</td>
<td class="product center">
{$order_detail.order_detail_tax_label}
</td>
{if isset($layout.before_discount)}
<td class="product center">
{if isset($order_detail.unit_price_tax_excl_before_specific_price)}
{displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl_before_specific_price}
{else}
--
{/if}
</td>
{/if}
<td class="product right">
{displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl_including_ecotax}
{if $order_detail.ecotax_tax_excl > 0}
<br>
<small>{{displayPrice currency=$order->id_currency price=$order_detail.ecotax_tax_excl}|string_format:{l s='ecotax: %s' d='Shop.Pdf' pdf='true'}}</small>
{/if}
</td>
<td class="product center">
{$order_detail.product_quantity}
</td>
<td class="product right">
{displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl_including_ecotax}
</td>
</tr>
{foreach $order_detail.customizedDatas as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}
<tr class="customization_data {$bgcolor_class}">
<td class="center"> &nbsp;</td>
<td>
{if isset($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) && count($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) > 0}
<table style="width: 100%;">
{foreach $customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_] as $customization_infos}
<tr>
<td style="width: 30%;">
{$customization_infos.name|string_format:{l s='%s:' d='Shop.Pdf' pdf='true'}}
</td>
<td>{if (int)$customization_infos.id_module}{$customization_infos.value nofilter}{else}{$customization_infos.value}{/if}</td>
</tr>
{/foreach}
</table>
{/if}
{if isset($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) && count($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) > 0}
<table style="width: 100%;">
<tr>
<td style="width: 70%;">{l s='image(s):' d='Shop.Pdf' pdf='true'}</td>
<td>{count($customization.datas[$smarty.const._CUSTOMIZE_FILE_])}</td>
</tr>
</table>
{/if}
</td>
<td class="center">
({if $customization.quantity == 0}1{else}{$customization.quantity}{/if})
</td>
{assign var=end value=($layout._colCount-3)}
{for $var=0 to $end}
<td class="center">
--
</td>
{/for}
</tr>
<!--if !$smarty.foreach.custo_foreach.last-->
{/foreach}
{/foreach}
{/foreach}
<!-- 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' d='Shop.Pdf' 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>

View File

@@ -0,0 +1,30 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="shipping-tab" width="100%">
<tr>
<td class="shipping center small grey bold" width="44%">{l s='Carrier' d='Shop.Pdf' pdf='true'}</td>
<td class="shipping center small white" width="56%">{$carrier->name}</td>
</tr>
</table>

View File

@@ -0,0 +1,192 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{assign var=color_header value="#F0F0F0"}
{assign var=color_border value="#000000"}
{assign var=color_border_lighter value="#CCCCCC"}
{assign var=color_line_even value="#FFFFFF"}
{assign var=color_line_odd value="#F9F9F9"}
{assign var=font_size_text value="9pt"}
{assign var=font_size_header value="9pt"}
{assign var=font_size_product value="9pt"}
{assign var=height_header value="20px"}
{assign var=table_padding value="4px"}
<style>
table, th, td {
margin: 0!important;
padding: 0!important;
vertical-align: middle;
font-size: {$font_size_text};
white-space: nowrap;
}
table.product {
border: 1px solid {$color_border};
border-collapse: collapse;
}
table#addresses-tab tr td {
font-size: large;
}
table#summary-tab {
padding: {$table_padding};
border: 1pt solid {$color_border};
}
table#total-tab {
padding: {$table_padding};
border: 1pt solid {$color_border};
}
table#note-tab {
padding: {$table_padding};
border: 1px solid {$color_border};
}
table#note-tab td.note{
word-wrap: break-word;
}
table#tax-tab {
padding: {$table_padding};
border: 1pt solid {$color_border};
}
table#payment-tab,
table#shipping-tab {
padding: {$table_padding};
border: 1px solid {$color_border};
}
th.product {
border-bottom: 1px solid {$color_border};
}
tr.discount th.header {
border-top: 1px solid {$color_border};
}
tr.product td {
border-bottom: 1px solid {$color_border_lighter};
}
tr.color_line_even {
background-color: {$color_line_even};
}
tr.color_line_odd {
background-color: {$color_line_odd};
}
tr.customization_data td {
}
td.product {
vertical-align: middle;
font-size: {$font_size_product};
}
th.header {
font-size: {$font_size_header};
height: {$height_header};
background-color: {$color_header};
vertical-align: middle;
text-align: center;
font-weight: bold;
}
th.header-right {
font-size: {$font_size_header};
height: {$height_header};
background-color: {$color_header};
vertical-align: middle;
text-align: right;
font-weight: bold;
}
th.payment,
th.shipping {
background-color: {$color_header};
vertical-align: middle;
font-weight: bold;
}
th.tva {
background-color: {$color_header};
vertical-align: middle;
font-weight: bold;
}
tr.separator td {
border-top: 1px solid #000000;
}
.left {
text-align: left;
}
.fright {
float: right;
}
.right {
text-align: right;
}
.center {
text-align: center;
}
.bold {
font-weight: bold;
}
.border {
border: 1px solid black;
}
.no_top_border {
border-top:hidden;
border-bottom:1px solid black;
border-left:1px solid black;
border-right:1px solid black;
}
.grey {
background-color: {$color_header};
}
/* This is used for the border size */
.white {
background-color: #FFFFFF;
}
.big,
tr.big td{
font-size: 110%;
}
.small, table.small th, table.small td {
font-size:small;
}
</style>

View File

@@ -0,0 +1,46 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Invoice Number' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Invoice Date' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order date' d='Shop.Pdf' pdf='true'}</th>
{if $addresses.invoice->vat_number}
<th class="header small" valign="middle">{l s='VAT Number' d='Shop.Pdf' pdf='true'}</th>
{/if}
</tr>
<tr>
<td class="center small white">{$title|escape:'html':'UTF-8'}</td>
<td class="center small white">{dateFormat date=$order->invoice_date full=0}</td>
<td class="center small white">{$order->getUniqReference()}</td>
<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
{if $addresses.invoice->vat_number}
<td class="center small white">
{$addresses.invoice->vat_number}
</td>
{/if}
</tr>
</table>

101
web/pdf/invoice.tax-tab.tpl Normal file
View File

@@ -0,0 +1,101 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- TAX DETAILS -->
{if $tax_exempt}
{l s='Exempt of VAT according to section 259B of the General Tax Code.' d='Shop.Pdf' pdf='true'}
{elseif (isset($tax_breakdowns) && $tax_breakdowns)}
<table id="tax-tab" width="100%">
<thead>
<tr>
<th class="header small">{l s='Tax Detail' d='Shop.Pdf' pdf='true'}</th>
<th class="header small">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th>
{if $display_tax_bases_in_breakdowns}
<th class="header small">{l s='Base price' d='Shop.Pdf' pdf='true'}</th>
{/if}
<th class="header-right small">{l s='Total Tax' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
{assign var=has_line value=false}
{foreach $tax_breakdowns as $label => $bd}
{assign var=label_printed value=false}
{foreach $bd as $line}
{if $line.rate == 0}
{continue}
{/if}
{assign var=has_line value=true}
<tr>
<td class="white">
{if !$label_printed}
{if $label == 'product_tax'}
{l s='Products' d='Shop.Pdf' pdf='true'}
{elseif $label == 'shipping_tax'}
{l s='Shipping' d='Shop.Pdf' pdf='true'}
{elseif $label == 'ecotax_tax'}
{l s='Ecotax' d='Shop.Pdf' pdf='true'}
{elseif $label == 'wrapping_tax'}
{l s='Wrapping' d='Shop.Pdf' pdf='true'}
{/if}
{assign var=label_printed value=true}
{/if}
</td>
<td class="center white">
{$line.rate} %
</td>
{if $display_tax_bases_in_breakdowns}
<td class="right white">
{if isset($is_order_slip) && $is_order_slip}- {/if}
{displayPrice currency=$order->id_currency price=$line.total_tax_excl}
</td>
{/if}
<td class="right white">
{if isset($is_order_slip) && $is_order_slip}- {/if}
{displayPrice currency=$order->id_currency price=$line.total_amount}
</td>
</tr>
{/foreach}
{/foreach}
{if !$has_line}
<tr>
<td class="white center" colspan="{if $display_tax_bases_in_breakdowns}4{else}3{/if}">
{l s='No taxes' d='Shop.Pdf' pdf='true'}
</td>
</tr>
{/if}
</tbody>
</table>
{/if}
<!-- / TAX DETAILS -->

View File

@@ -0,0 +1,98 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="total-tab" width="100%">
<tr>
<td class="grey" width="50%">
{l s='Total Products' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>
{if $footer.product_discounts_tax_excl > 0}
<tr>
<td class="grey" width="50%">
{l s='Total Discounts' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>
{/if}
{if !$order->isVirtual()}
<tr>
<td class="grey" width="50%">
{l s='Shipping Costs' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="50%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' d='Shop.Pdf' pdf='true'}
{/if}
</td>
</tr>
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Costs' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.wrapping_tax_excl}</td>
</tr>
{/if}
<tr class="bold">
<td class="grey">
{l s='Total (Tax excl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>
{if $footer.total_taxes > 0}
<tr class="bold">
<td class="grey">
{l s='Total Tax' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total' d='Shop.Pdf' pdf='true'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
</td>
</tr>
</table>

142
web/pdf/invoice.tpl Normal file
View File

@@ -0,0 +1,142 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Invoicing -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<!-- TVA Info -->
<tr>
<td colspan="12">
{$summary_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<!-- Product -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<!-- TVA -->
<tr>
<!-- Code TVA -->
<td colspan="6" class="left">
{$tax_tab}
</td>
<td colspan="1">&nbsp;</td>
<!-- Calcule TVA -->
<td colspan="5" rowspan="5" class="right">
{$total_tab}
</td>
</tr>
{$note_tab}
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="6" class="left">
{$payment_tab}
</td>
<td colspan="1">&nbsp;</td>
</tr>
<tr>
<td colspan="6" class="left">
{$shipping_tab}
</td>
<td colspan="1">&nbsp;</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="7" class="left small">
<table>
<tr>
<td>
<p>{$legal_free_text|escape:'html':'UTF-8'|nl2br}</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- Hook -->
{if isset($HOOK_DISPLAY_PDF)}
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$HOOK_DISPLAY_PDF}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,42 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="addresses-tab" cellspacing="0" cellpadding="0">
<tr>
{if !empty($invoice_address)}
<td width="50%">{if $delivery_address}<span class="bold">{l s='Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$delivery_address}
{/if}
</td>
<td width="50%"><span class="bold">{l s='Billing Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$invoice_address}
</td>
{else}
<td width="100%">{if $delivery_address}<span class="bold">{l s='Billing & Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
{$delivery_address}
{/if}
</td>
{/if}
</tr>
</table>

View File

@@ -0,0 +1,42 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<tr>
<th class="header small left" valign="middle">{l s='If the following conditions are not met, we reserve the right to refuse your package and/or refund:' d='Shop.Pdf' pdf='true'}</th>
</tr>
<tr>
<td class="center small white">
<ul class="left">
<li>{l s='Please include this return reference on your return package:' d='Shop.Pdf' pdf='true'} {$order_return->id}</li>
<li>{l s='All products must be returned in their original package and condition, unused and without damage.' d='Shop.Pdf' pdf='true'}</li>
<li>{l s='Please print out this document and slip it into your package.' d='Shop.Pdf' pdf='true'}</li>
<li>{l s='The package should be sent to the following address:' d='Shop.Pdf' pdf='true'}</li>
</ul>
<span style="margin-left: 20px;">{$shop_address}</span>
</td>
</tr>
</table>
<br/>
{l s='Upon receiving your package, we will notify you by e-mail. We will then begin processing the refund, if applicable. Let us know if you have any questions' d='Shop.Pdf' pdf='true'}

View File

@@ -0,0 +1,58 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th class="product header small" width="60%">{l s='Items to be returned' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="20%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="20%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
<!-- PRODUCTS -->
{foreach $products as $product}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
<td class="product left">
{$product.product_name}
</td>
<td class="product left">
{if empty($product.product_reference)}
---
{else}
{$product.product_reference}
{/if}
</td>
<td class="product center">
{$product.product_quantity}
</td>
</tr>
{/foreach}
<!-- END PRODUCTS -->
</tbody>
</table>

View File

@@ -0,0 +1,37 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{l s='We have logged your return request.' d='Shop.Pdf' pdf='true'}<br />
{l s='Your package must be returned to us within' d='Shop.Pdf' pdf='true'} {$return_nb_days} {l s='days of receiving your order.' d='Shop.Pdf' pdf='true'}<br /><br />
<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Return Number' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Date' d='Shop.Pdf' pdf='true'}</th>
</tr>
<tr>
<td class="center small white">{'%06d'|sprintf:$order_return->id}</td>
<td class="center small white">{dateFormat date=$order_return->date_add full=0}</td>
</tr>
</table>

91
web/pdf/order-return.tpl Normal file
View File

@@ -0,0 +1,91 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Invoicing -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<!-- TVA Info -->
<tr>
<td colspan="12">
{$summary_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<!-- Product -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$conditions_tab}
</td>
</tr>
<!-- Hook -->
{if isset($HOOK_DISPLAY_PDF)}
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$HOOK_DISPLAY_PDF}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,32 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="payment-tab" width="100%">
<tr>
<td class="payment center small grey bold" width="44%">{l s='Payment Method' d='Shop.Pdf' pdf='true'}</td>
<td class="payment left white" width="56%">
{$order->payment}
</td>
</tr>
</table>

View File

@@ -0,0 +1,117 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table class="product" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th class="product header small" width="60%">{l s='Product / Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="10%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th>
<th class="product header-right small" width="15%">{l s='Unit price' d='Shop.Pdf' pdf='true'}<br />{if $tax_excluded_display}{l s='(Tax Excl.)' d='Shop.Pdf' pdf='true'}{else}{l s='(Tax Incl.)' d='Shop.Pdf' pdf='true'}{/if}</th>
<th class="product header-right small" width="15%">{l s='Price' d='Shop.Pdf' pdf='true'}<br />{if $tax_excluded_display}{l s='(Tax Excl.)' d='Shop.Pdf' pdf='true'}{else}{l s='(Tax Incl.)' d='Shop.Pdf' pdf='true'}{/if}</th>
</tr>
</thead>
<tbody>
{if !isset($order_details) || count($order_details) == 0}
<tr class="product" colspan="4">
<td class="product center">
{l s='No details' d='Shop.Pdf' pdf='true'}
</td>
</tr>
{else}
{foreach $order_details as $order_detail}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
<td class="product left">
{$order_detail.product_name}
</td>
<td class="product center">
{$order_detail.product_quantity}
</td>
<td class="product right">
{if $tax_excluded_display}
- {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl}
{else}
- {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_incl}
{/if}
</td>
<td class="product right">
{if $tax_excluded_display}
- {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl}
{else}
- {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_incl}
{/if}
</td>
</tr>
{foreach $order_detail.customizedDatas as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}
<tr class="customization_data {$bgcolor_class}">
<td>
<table style="width: 100%;"><tr><td>
{foreach $customization.datas as $customization_types}
{if isset($customization.datas[Product::CUSTOMIZE_TEXTFIELD]) && count($customization.datas[Product::CUSTOMIZE_TEXTFIELD]) > 0}
{foreach $customization.datas[Product::CUSTOMIZE_TEXTFIELD] as $customization_infos}
{$customization_infos.name}: {$customization_infos.value}
{if !$smarty.foreach.custo_foreach.last}<br />{/if}
{/foreach}
{/if}
{if isset($customization.datas[Product::CUSTOMIZE_FILE]) && count($customization.datas[Product::CUSTOMIZE_FILE]) > 0}
{count($customization.datas[Product::CUSTOMIZE_FILE])} {l s='image(s)' d='Shop.Pdf' pdf='true'}
{/if}
{/foreach}
</td></tr></table>
</td>
<td class="center">({$customization.quantity})</td>
<td class="product"></td>
<td class="product"></td>
</tr>
{/foreach}
{/foreach}
{/foreach}
{/if}
{if is_array($cart_rules) && count($cart_rules)}
{foreach $cart_rules as $cart_rule}
<tr class="discount">
<td class="white left" colspan="3">{$cart_rule.name}</td>
<td class="white right">
{if $tax_excluded_display}
+ {$cart_rule.value_tax_excl}
{else}
+ {$cart_rule.value}
{/if}
</td>
</tr>
{/foreach}
{/if}
</tbody>
</table>

View File

@@ -0,0 +1,42 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order Date' d='Shop.Pdf' pdf='true'}</th>
{if $addresses.invoice->vat_number}
<th class="header small" valign="middle">{l s='VAT Number' d='Shop.Pdf' pdf='true'}</th>
{/if}
</tr>
<tr>
<td class="center small white">{$order->getUniqReference()}</td>
<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
{if $addresses.invoice->vat_number}
<td class="center small white">
{$addresses.invoice->vat_number}
</td>
{/if}
</tr>
</table>

View File

@@ -0,0 +1,116 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="total-tab" width="100%">
{if $order_slip->shipping_cost_amount > 0}
<tr>
{if $tax_excluded_display}
<td class="grey" width="70%">{l s='Shipping (Tax Excl.)' d='Shop.Pdf' pdf='true'}</td>
{else}
<td class="grey" width="70%">{l s='Shipping (Tax Incl.)' d='Shop.Pdf' pdf='true'}</td>
{/if}
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$order_slip->shipping_cost_amount}
</td>
</tr>
{/if}
{if isset($order_details) && count($order_details) > 0}
{if (($order->total_paid_tax_incl - $order->total_paid_tax_excl) > 0)}
{if $tax_excluded_display}
<tr>
<td class="grey" width="70%">
{l s='Product Total (Tax Excl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$order->total_products}
</td>
</tr>
{else}
<tr>
<td class="grey" width="70%">
{l s='Product Total (Tax Incl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$order->total_products_wt}
</td>
</tr>
{/if}
{else}
<tr>
<td class="grey" width="70%">
{l s='Product Total' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$order->total_products}
</td>
</tr>
{/if}
{/if}
{if ($order->total_paid_tax_incl - $order->total_paid_tax_excl) > 0}
<tr>
<td class="grey" width="70%">
{l s='Total Tax' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=($order->total_paid_tax_incl - $order->total_paid_tax_excl)}
</td>
</tr>
{/if}
{if $tax_excluded_display}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total (Tax Excl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
{if $total_cart_rule}
{assign var=total_paid value=0}
{$total_paid = $order->total_paid_tax_excl - $total_cart_rule}
- {displayPrice currency=$order->id_currency price=$total_paid}
{else}
- {displayPrice currency=$order->id_currency price=$order->total_paid_tax_excl}
{/if}
</td>
</tr>
{/if}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total (Tax Incl.)' d='Shop.Pdf' pdf='true'}
</td>
<td class="white" width="30%">
{if $total_cart_rule}
{assign var=total_paid value=0}
{$total_paid = $order->total_paid_tax_incl - $total_cart_rule}
- {displayPrice currency=$order->id_currency price=$total_paid}
{else}
- {displayPrice currency=$order->id_currency price=$order->total_paid_tax_incl}
{/if}
</td>
</tr>
</table>

113
web/pdf/order-slip.tpl Normal file
View File

@@ -0,0 +1,113 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Invoicing -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<!-- TVA Info -->
<tr>
<td colspan="12">
{$summary_tab}
</td>
</tr>
<tr>
<td colspan="12" height="20">&nbsp;</td>
</tr>
<!-- Product -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<!-- TVA -->
<tr>
<!-- Code TVA -->
<td colspan="6" class="left">
{$tax_tab}
</td>
<td colspan="1">&nbsp;</td>
<!-- Calcule TVA -->
<td colspan="5" rowspan="5" class="right">
{$total_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<tr>
<td colspan="6" class="left">
{$payment_tab}
</td>
<td colspan="1">&nbsp;</td>
</tr>
<!-- Hook -->
{if isset($HOOK_DISPLAY_PDF)}
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
<td colspan="10">
{$HOOK_DISPLAY_PDF}
</td>
</tr>
{/if}
</table>

25
web/pdf/pagination.tpl Normal file
View File

@@ -0,0 +1,25 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<p style="text-align: right; vertical-align: text-top;">{literal} {:png:} / {:ptg:} {/literal}</p>

View File

@@ -0,0 +1,57 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table style="width: 100%;">
<tr>
<td style="text-align: left; font-size: 6pt; color: #444; width:87%;">
{$shop_address|escape:'html':'UTF-8'}<br />
{if !empty($shop_phone) OR !empty($shop_fax)}
{l s='For more assistance, contact Support:' d='Shop.Pdf' pdf='true'}<br />
{if !empty($shop_phone)}
{l s='Tel: %s' sprintf=[$shop_phone|escape:'html':'UTF-8'] d='Shop.Pdf' pdf='true'}
{/if}
{if !empty($shop_fax)}
{l s='Fax: %s' sprintf=[$shop_fax|escape:'html':'UTF-8'] d='Shop.Pdf' pdf='true'}
{/if}
<br />
{/if}
{if isset($shop_details)}
{$shop_details|escape:'html':'UTF-8'}<br />
{/if}
{if isset($free_text)}
{foreach $free_text as $text}
{$text|escape:'html':'UTF-8'}<br />
{/foreach}
{/if}
</td>
<td style="text-align: right; font-size: 8pt; color: #444; width:13%;">
{literal}{:pnp:} / {:ptp:}{/literal}
</td>
</tr>
</table>

View File

@@ -0,0 +1,54 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table>
<tr><td style="line-height: 6px">&nbsp;</td></tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 50%">
{if $logo_path}
<img src="{$logo_path}" />
{/if}
</td>
<td style="width: 50%; text-align: right;">
<table style="width: 100%">
<tr>
<td style="font-weight: bold; font-size: 13pt; color: #444; width: 100%">{$shop_name|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<td style="font-size: 13pt; color: #444; font-weight: bold;">{$date|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<td style="font-size: 13pt; color: #444; font-weight: bold;">{$title|escape:'html':'UTF-8'}</td>
</tr>
<tr>
<td style="font-size: 13pt; color: #444; font-weight: bold;">{$reference|escape:'html':'UTF-8'}</td>
</tr>
</table>
</td>
</tr>
</table>

View File

@@ -0,0 +1,42 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="addresses-tab" cellspacing="0" cellpadding="0">
<tr>
<td width="40%"><span class="bold"> </span><br/><br/>
{$shop_name}<br/>
{$address_warehouse->address1}<br/>
{if !empty($address_warehouse->address2)}{$address_warehouse->address2}<br/>{/if}
{$address_warehouse->postcode} {$address_warehouse->city}
</td>
<td width="20%">&nbsp;</td>
<td width="40%"><span class="bold"> </span><br/><br/>
{$supply_order->supplier_name}<br/>
{$address_supplier->address1}<br/>
{if !empty($address_supplier->address2)}{$address_supplier->address2}<br/>{/if}
{$address_supplier->postcode} {$address_supplier->city}<br/>
{$address_supplier->country}
</td>
</tr>
</table>

View File

@@ -0,0 +1,80 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{l s='Products ordered:' d='Shop.Pdf' pdf='true'}<br/>
<table class="product small" width="100%" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th class="product header small" width="14%">{l s='Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="21%">{l s='Designation' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="5%">{l s='Qty' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="10%">{l s='Unit Price TE' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="11%">{l s='Total TE' d='Shop.Pdf' pdf='true'} <br /> {l s='Before discount' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="9%">{l s='Discount Rate' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="11%">{l s='Total TE' d='Shop.Pdf' pdf='true'} <br /> {l s='After discount' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="9%">{l s='Tax rate' d='Shop.Pdf' pdf='true'}</th>
<th class="product header small" width="10%">{l s='Total TI' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
{foreach $supply_order_details as $supply_order_detail}
{cycle values=["color_line_even", "color_line_odd"] assign=bgcolor_class}
<tr class="product {$bgcolor_class}">
<td class="product left">
{$supply_order_detail->supplier_reference}
</td>
<td class="product left">
{$supply_order_detail->name}
</td>
<td class="product right">
{$supply_order_detail->quantity_expected}
</td>
<td class="product right">
{$currency->prefix} {$supply_order_detail->unit_price_te} {$currency->suffix}
</td>
<td class="product right">
{$currency->prefix} {$supply_order_detail->price_te} {$currency->suffix}
</td>
<td class="product right">
{$supply_order_detail->discount_rate}
</td>
<td class="product right">
{$currency->prefix} {$supply_order_detail->price_with_discount_te} {$currency->suffix}
</td>
<td class="product right">
{$supply_order_detail->tax_rate}
</td>
<td class="product right">
{$currency->prefix} {$supply_order_detail->price_ti} {$currency->suffix}
</td>
</tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,56 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{l s='Taxes:' d='Shop.Pdf' pdf='true'}<br/>
<table id="tax-tab" width="100%">
<thead>
<tr>
<th class="header-right small">{l s='Base TE' d='Shop.Pdf' pdf='true'}</th>
<th class="header-right small">{l s='Tax Rate' d='Shop.Pdf' pdf='true'}</th>
<th class="header-right small">{l s='Tax Value' d='Shop.Pdf' pdf='true'}</th>
</tr>
</thead>
<tbody>
{assign var=has_line value=false}
{foreach $tax_order_summary as $entry}
{assign var=has_line value=true}
<tr>
<td class="right white">{$currency->prefix} {$entry['base_te']} {$currency->suffix}</td>
<td class="right white">{$entry['tax_rate']}</td>
<td class="right white">{$currency->prefix} {$entry['total_tax_value']} {$currency->suffix}</td>
</tr>
{/foreach}
{if !$has_line}
<tr>
<td class="white center" colspan="3">
{l s='No taxes' d='Shop.Pdf' pdf='true'}
</td>
</tr>
{/if}
</tbody>
</table>

View File

@@ -0,0 +1,66 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{l s='Summary:' d='Shop.Pdf' pdf='true'}<br/>
<table id="total-tab" width="100%">
<tr class="bold">
<td class="grey" width="70%">{l s='Total TE' d='Shop.Pdf' pdf='true'} <br /> {l s='(Before discount)' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->total_te} {$currency->suffix}
</td>
</tr>
<tr class="bold">
<td class="grey" width="70%">{l s='Order Discount' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->discount_value_te} {$currency->suffix}
</td>
</tr>
<tr class="bold">
<td class="grey" width="70%">{l s='Total TE' d='Shop.Pdf' pdf='true'} <br /> {l s='(After discount)' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->total_with_discount_te} {$currency->suffix}
</td>
</tr>
<tr class="bold">
<td class="grey" width="70%">{l s='Tax value' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->total_tax} {$currency->suffix}
</td>
</tr>
<tr class="bold">
<td class="grey" width="70%">{l s='Total TI' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->total_ti} {$currency->suffix}
</td>
</tr>
<tr class="bold">
<td class="grey" width="70%">{l s='Total to pay' d='Shop.Pdf' pdf='true'}</td>
<td class="white" width="30%">
{$currency->prefix} {$supply_order->total_ti} {$currency->suffix}
</td>
</tr>
</table>

74
web/pdf/supply-order.tpl Normal file
View File

@@ -0,0 +1,74 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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 license@prestashop.com 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 <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{$style_tab}
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
<!-- Addresses -->
<tr>
<td colspan="12">
{$addresses_tab}
</td>
</tr>
<tr>
<td colspan="12" height="30">&nbsp;</td>
</tr>
<!-- Product -->
<tr>
<td colspan="12">
{$product_tab}
</td>
</tr>
<tr>
<td colspan="12" height="10">&nbsp;</td>
</tr>
<!-- TVA -->
<tr>
<!-- Code TVA -->
<td colspan="6" class="left">
{$tax_tab}
</td>
<td colspan="1">&nbsp;</td>
<!-- Calcule TVA -->
<td colspan="5">
{$total_tab}
</td>
</tr>
</table>