{* * 2007-2011 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-2011 PrestaShop SA * @version Release: $Revision$ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helper/view/view.tpl"} {block name="override_tpl"} {if ($HOOK_INVOICE)}
{$HOOK_INVOICE}

'; {/if}
{if (count($invoices_collection))} {l s='View invoice'} {l s='View invoice'} {else} {l s='No invoice'} {l s='No invoice'} {/if} - {if ($currentState->delivery || $order->delivery_number)} {l s='View delivery slip'} {l s='View delivery slip'} {else} {l s='No delivery slip'} {l s='No delivery slip'} {/if} - {l s='Print order'} {l s='Print order'}
  • {l s='Date'}: {dateFormat date=$order->date_add full=true} |
  • {sizeof($messages)} {if (sizeof($messages) > 1)}{l s='messages'}{else}{l s='message'}{/if} |
  • {sizeof($products)} {if (sizeof($products) > 1)}{l s='products'}{else}{l s='product'}{/if} |
  • {l s='Total'}: {displayPrice price=$order->total_paid_tax_incl currency=$currency->id}

{foreach from=$history item=row key=key} {if ($key == 0)} {else} {/if} {/foreach}
{dateFormat date=$row['date_add'] full=true} {$row['ostate_name']|stripslashes} {if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}
{dateFormat date=$row['date_add'] full=true} {$row['ostate_name']|stripslashes} {if $row['employee_lastname']}{$row['employee_firstname']|stripslashes} {$row['employee_lastname']|stripslashes}{/if}
{if $customer->id}
{l s='Customer information'} {$customer->firstname} {$customer->lastname} ({l s='#'}{$customer->id})
({$customer->email})

{if ($customer->isGuest())} {l s='This order has been placed by a'} {l s='guest'} {if (!Customer::customerExists($customer->email))}

{l s='This feature will generate a random password and send an e-mail to the customer'}
{else}
{l s='A registered customer account exists with the same email address'}
{/if} {else} {l s='Account registered:'} {dateFormat date=$customer->date_add full=true}
{l s='Valid orders placed:'} {$customerStats['nb_orders']}
{l s='Total paid since registration:'} {displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}
{/if} {/if} {if (sizeof($sources))}
{l s='Sources'}
{/if} {if $HOOK_ADMIN_ORDER} {$HOOK_ADMIN_ORDER} {/if}
{l s='Documents'} {foreach from=$order->getDocuments() item=document} {foreachelse} {/foreach}
Date Document Number
{dateFormat date=$document->date_add} Invoice #{Configuration::get('PS_INVOICE_PREFIX', $current_id_lang)}{'%06d'|sprintf:$document->number}

{l s='No document is available'}

{l s='Generate invoice'}


{l s='Payment'} {if !$order->valid}

{l s='Don\'t forget to update your conversion rate before make this change.'}


{/if}

{l s='Warning:'} {displayPrice price=$total_paid currency=$currency->id} {l s='paid instead of'} {displayPrice price=$order->total_paid_tax_incl currency=$currency->id}

{foreach from=$order->getOrderPaymentCollection() item=payment} {/foreach}
{l s='Date'} {l s='Payment method'} {l s='Transaction ID'} {l s='Amount'}  
{dateFormat date=$payment->date_add full=true} {$payment->payment_method} {$payment->transaction_id} {displayPrice price=$payment->amount currency=$payment->id_currency}

{l s='Shipping'}
{l s='Recycled package:'} {if $order->recyclable} {else} {/if}
{l s='Gift wrapping:'} {if $order->gift}
{if $order->gift_message}
{l s='Message:'}
{$order->gift_message|nl2br}
{/if} {else} {/if}
{foreach from=$order->getShipping() item=line} {/foreach}
{l s='Date:'} {l s='Type'} {l s='Carrier'} {l s='Weight'} {l s='Shipping cost'} {l s='Tracking number'}
{$line.date_add} {$line.type} {$line.state_name} {$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')} {if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}{else}{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}{/if} {if $line.url && $line.tracking_number}{$line.tracking_number}{else}{$line.tracking_number}{/if} {if $line.can_edit}
{l s='Edit'}
{/if}
{if $carrierModuleCall} {$carrierModuleCall} {/if}

{l s='Merchandise returns'} {if $order->getReturn()|count > 0} {foreach from=$order->getReturn() item=line} {/foreach}
Date Type Carrier Tracking number
{$line.date_add} {$line.type} {$line.state_name} {if $line.url && $line.tracking_number}{$line.tracking_number}{else}{$line.tracking_number}{/if} {if $line.can_edit}
{l s='Edit'}
{/if}
{else} {l s='No merchandise returns yet.'} {/if} {if $carrierModuleCall} {$carrierModuleCall} {/if}
{l s='Shipping address'}{l s='Shipping address'} {if $can_edit}

{/if}
{displayAddressDetail address=$addresses.delivery newLine='
'} {if $addresses.delivery->other}
{$addresses.delivery->other}
{/if}
{l s='Invoice address'}{l s='Invoice address'} {if $can_edit}

{/if}
{displayAddressDetail address=$addresses.invoice newLine='
'} {if $addresses.invoice->other}
{$addresses.invoice->other}
{/if}
{l s='Products'}{l s='Products'}
{if $can_edit} {if !$order->hasBeenDelivered()}
{l s='Add a product'} {l s='Add a product'}
{/if}


{/if} {if ($order->hasBeenPaid())}{/if} {if ($order->hasBeenDelivered())}{/if} {if !$order->hasBeenDelivered()} {/if} {foreach from=$products item=product key=k} {* Include customized datas partial *} {include file='orders/_customized_data.tpl'} {* Include product line partial *} {include file='orders/_product_line.tpl'} {/foreach} {if $can_edit} {include file='orders/_new_product.tpl'} {/if}
  {l s='Product'} {l s='UP'} * {l s='Qty'}{l s='Refunded'}{l s='Returned'}{l s='Stock'} {l s='Total'} * {l s='Action'}
* {l s='According to the group of this customer, prices are printed:'} {if ($order->getTaxCalculationMethod() == $smarty.const.PS_TAX_EXC)} {l s='tax excluded.'} {else} {l s='tax included.'} {/if} {if Configuration::get('PS_ORDER_RETURN')}

{l s='Merchandise returns are disabled'} {/if}
total_discounts_tax_incl == 0}style="display: none;"{/if}> total_wrapping_tax_incl == 0}style="display: none;"{/if}>
{l s='Products'} {displayPrice price=$order->total_products_wt currency=$currency->id}
{l s='Discounts'} -{displayPrice price=$order->total_discounts_tax_incl currency=$currency->id}
{l s='Wrapping'} {displayPrice price=$order->total_wrapping_tax_incl currency=$currency->id}
{l s='Shipping'} {displayPrice price=$order->total_shipping_tax_incl currency=$currency->id}
{l s='Total'} {displayPrice price=$order->total_paid_tax_incl currency=$currency->id}
{if (sizeof($discounts))}
{foreach from=$discounts item=discount} {/foreach}
{l s='Discounts'}{l s='Discount name'} {l s='Value'}
{$discount['name']} {if $discount['value'] != 0.00} - {/if} {displayPrice price=$discount['value'] currency=$currency->id}
{/if}
 
 
{l s='New message'}


{l s='Display to consumer?'} {l s='Yes'} {l s='No'}





{if (sizeof($messages))}
{l s='Messages'} {foreach from=$messages item=message}
{if ($message['is_new_for_me'])} {/if} {l s='At'} {dateFormat date=$message['date_add']} {l s='from'} {if ($message['elastname'])}{$message['efirstname']} {$message['elastname']}{else}{$message['cfirstname']} {$message['clastname']}{/if} {if ($message['private'] == 1)}{l s='Private:'}{/if}

{$message['message']|nl2br}


{/foreach}

{l s='When you read a message, please click on the green check.'}

{/if}
{l s='Credit slip'}{l s='Credit slip'} {if (!sizeof($slips))} {l s='No slip for this order.'} {else} {foreach from=$slips item=slip} ({dateFormat date=$slip['date_upd']}) : {l s='#'}{'%06d'|sprintf:$slip['id_order_slip']}
{/foreach} {/if}
 


{l s='Back to list'}
{/block}