11

{*
* 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 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-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
*}

{if !empty($delivery_address)}

{l s=’Delivery Address’ pdf=’true’}

{$delivery_address}

{l s=’Billing Address’ pdf=’true’}

{$invoice_address}

{else}

{l s=’Billing & Delivery Address.’ pdf=’true’}

{$invoice_address}

{/if}


{l s=’Order Number:’ pdf=’true’}

{$order->getUniqReference()}{l s=’Order Date:’ pdf=’true’}

{dateFormat date=$order->date_add full=0}

{l s=’Payment Method:’ pdf=’true’}

{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}{foreachelse}{/foreach}

{$payment->payment_method} {displayPrice price=$payment->amount currency=$order->id_currency}
{l s=’No payment’ pdf=’true’}

{if isset($carrier)}
{l s=’Carrier:’ pdf=’true’}

{$carrier->name}

{/if}

{$product_reference_width = 45} {if Configuration::get(‘PS_PDF_IMG_INVOICE’)} {$product_reference_width = $product_reference_width – 10}{/if}
{if !$tax_excluded_display}
{$product_reference_width = $product_reference_width – 10}
{/if}
{if !$tax_excluded_display}{/if}
{foreach $order_details as $order_detail}
{cycle values=’#FFF,#DDD’ assign=bgcolor}id && isset($order_detail.image_size)}height=”{$order_detail[‘image_size’][1]}”{/if}> {if Configuration::get(‘PS_PDF_IMG_INVOICE’)}{/if}
{if !$tax_excluded_display}{/if}{foreach $order_detail.customizedDatas as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}{if !$tax_excluded_display}{/if}{/foreach}
{/foreach}
{/foreach}

{assign var=”shipping_discount_tax_incl” value=”0″}
{foreach $cart_rules as $cart_rule}
{cycle values=’#FFF,#DDD’ assign=bgcolor}{$cart_rule_colspan = 2} {if Configuration::get(‘PS_PDF_IMG_INVOICE’)} {$cart_rule_colspan = $cart_rule_colspan + 1} {/if}{/foreach}

{l s=’Image’ pdf=’true’} {l s=’Product / Reference’ pdf=’true’} {l s=’Unit Price’ pdf=’true’}
{l s='(Tax Excl.)’ pdf=’true’}
{l s=’Unit Price’ pdf=’true’}
{if $tax_excluded_display}
{l s='(Tax Excl.)’ pdf=’true’}
{else}
{l s='(Tax Incl.)’ pdf=’true’}
{/if}
{l s=’Discount’ pdf=’true’} {l s=’Qty’ pdf=’true’} {l s=’Total’ pdf=’true’}
{if $tax_excluded_display}
{l s='(Tax Excl.)’ pdf=’true’}
{else}
{l s='(Tax Incl.)’ pdf=’true’}
{/if}
{if isset($order_detail.image) && $order_detail.image->id}{$order_detail.image_tag}{/if} {$order_detail.product_name}{if isset($order_detail.product_reference) && !empty($order_detail.product_reference)} ({l s=’Reference:’ pdf=’true’} {$order_detail.product_reference}){/if} {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl} {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}
{if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)}
-{displayPrice currency=$order->id_currency price=$order_detail.reduction_amount}
{elseif (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)}
-{$order_detail.reduction_percent}%
{else}

{/if}
{$order_detail.product_quantity} {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}

{if isset($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) && count($customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_]) > 0}
{foreach $customization.datas[$smarty.const._CUSTOMIZE_TEXTFIELD_] as $customization_infos}
{$customization_infos.name}: {$customization_infos.value}
{if !$smarty.foreach.custo_foreach.last}

{else}

{/if}
{/foreach}
{/if}

{if isset($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) && count($customization.datas[$smarty.const._CUSTOMIZE_FILE_]) > 0}
{count($customization.datas[$smarty.const._CUSTOMIZE_FILE_])} {l s=’image(s)’ pdf=’true’}
{/if}

({$customization.quantity})
{$cart_rule.name} {if $tax_excluded_display}
– {displayPrice currency=$order->id_currency price=$cart_rule.value_tax_excl}
{else}
– {displayPrice currency=$order->id_currency price=$cart_rule.value}
{/if}

{if (($order_invoice->total_paid_tax_incl – $order_invoice->total_paid_tax_excl) > 0)}{else}{/if}{if $order_invoice->total_wrapping_tax_incl > 0}{if $tax_excluded_display}{else}{/if}
{/if}{if $order_invoice->total_shipping_tax_incl > 0}{if $tax_excluded_display}{else}{/if}
{/if}{if $order_invoice->total_discount_tax_incl > 0}{/if}{if ($order_invoice->total_paid_tax_incl – $order_invoice->total_paid_tax_excl) > 0}{/if}

{l s=’Product Total (Tax Excl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_products}
{l s=’Product Total (Tax Incl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_products_wt}
{l s=’Product Total’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_products}
{l s=’Wrapping Cost (Tax Excl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_wrapping_tax_excl} {l s=’Wrapping Cost (Tax Incl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_wrapping_tax_incl}
{l s=’Shipping Cost (Tax Excl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_excl} {l s=’Shipping Cost (Tax Incl.)’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_shipping_tax_incl}
{l s=’Total Vouchers (Tax Incl.)’ pdf=’true’} -{displayPrice currency=$order->id_currency price=($order_invoice->total_discount_tax_incl)}
{l s=’Total Tax’ pdf=’true’} {displayPrice currency=$order->id_currency price=($order_invoice->total_paid_tax_incl – $order_invoice->total_paid_tax_excl)}
{l s=’Total’ pdf=’true’} {displayPrice currency=$order->id_currency price=$order_invoice->total_paid_tax_incl}

{$tax_tab}

{if isset($order_invoice->note) && $order_invoice->note}

{$order_invoice->note|nl2br}

{/if}

{if isset($HOOK_DISPLAY_PDF)}

{$HOOK_DISPLAY_PDF}

{/if}

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

La moderación de comentarios está activada. Su comentario podría tardar cierto tiempo en aparecer.