{* * 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 *}
{if isset($orderDocuments) && $orderDocuments|count} {foreach from=$orderDocuments item=document} {if get_class($document) eq 'OrderInvoice'} {elseif get_class($document) eq 'OrderSlip'} {/if} {/foreach} {else} {/if}
{l s='Date'} {l s='Document'} {l s='Number'} {l s='Amount'} {l s='Note'}
{dateFormat date=$document->date_add} {if get_class($document) eq 'OrderInvoice'} {l s='Invoice'} {elseif get_class($document) eq 'OrderSlip'} {l s='Credit Slip'} {/if} {if get_class($document) eq 'OrderInvoice'} {elseif get_class($document) eq 'OrderSlip'} {/if} {if get_class($document) eq 'OrderInvoice'} {$document->getInvoiceNumberFormatted($current_id_lang, $order->id_shop)} {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'} {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} {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 $document->note eq ''}  {l s='Add note'} {else}  {l s='Edit note'} {/if} {if $can_edit && $document->getRestPaid()}  {l s='Enter payment'} {/if} {/if}
{l s='There is no available document'}
{if $can_edit && !$orderDocuments|count && isset($invoice_management_active) && $invoice_management_active} {/if}