{* * 2007-2017 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 * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}
{foreach from=$order->getDocuments() item=document} {if get_class($document) eq 'OrderInvoice'} {if isset($document->is_delivery)} {else} {/if} {elseif get_class($document) eq 'OrderSlip'} {/if} {if get_class($document) eq 'OrderInvoice'} {if !isset($document->is_delivery)} {/if} {/if} {foreachelse} {/foreach}
{l s='Date'} {l s='Document'} {l s='Number'} {l s='Amount'}
{dateFormat date=$document->date_add} {if get_class($document) eq 'OrderInvoice'} {if isset($document->is_delivery)} {l s='Delivery slip'} {else} {l s='Invoice'} {/if} {elseif get_class($document) eq 'OrderSlip'} {l s='Credit Slip'} {/if} {if get_class($document) eq 'OrderInvoice'} {if isset($document->is_delivery)} {else} {/if} {elseif get_class($document) eq 'OrderSlip'} {/if} {if get_class($document) eq 'OrderInvoice'} {if isset($document->is_delivery)} {Configuration::get('PS_DELIVERY_PREFIX', $current_id_lang, null, $order->id_shop)}{'%06d'|sprintf:$document->delivery_number} {else} {$document->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)} {/if} {elseif get_class($document) eq 'OrderSlip'} {Configuration::get('PS_CREDIT_SLIP_PREFIX', $current_id_lang)}{'%06d'|sprintf:$document->id} {/if} {if get_class($document) eq 'OrderInvoice'} {if isset($document->is_delivery)} -- {else} {displayPrice price=$document->total_paid_tax_incl currency=$currency->id}  {if $document->getTotalPaid()} {if $document->getRestPaid() > 0} ({displayPrice price=$document->getRestPaid() currency=$currency->id} {l s='not paid'}) {elseif $document->getRestPaid() < 0} ({displayPrice price=-$document->getRestPaid() currency=$currency->id} {l s='overpaid'}) {/if} {/if} {/if} {elseif get_class($document) eq 'OrderSlip'} {displayPrice price=$document->total_products_tax_incl+$document->total_shipping_tax_incl currency=$currency->id} {/if} {if get_class($document) eq 'OrderInvoice'} {if !isset($document->is_delivery)} {if $document->getRestPaid()} {l s='Enter payment'} {/if} {if $document->note eq ''} {l s='Add note'} {else} {l s='Edit note'} {/if} {/if} {/if}
{l s='There is no available document'}
{if isset($invoice_management_active) && $invoice_management_active} {l s='Generate invoice'} {/if}