{* $Id: invoice.tpl 1745 2006-05-11 10:22:28Z zeke $ *} {if $order_info}
{* Invoice header *}

{$settings.Company.company_name}     
{$settings.Company.company_name}
{$settings.Company.company_address}
{$settings.Company.company_city}, {$settings.Company.company_state_descr} {$settings.Company.company_zipcode}
{$settings.Company.company_country_descr}
{if $settings.Company.company_phone} {$lang.phone1_label}: {$settings.Company.company_phone}
{/if} {if $settings.Company.company_phone_2} {$lang.phone2_label}: {$settings.Company.company_phone_2}
{/if} {if $settings.Company.company_fax} {$lang.fax}: {$settings.Company.company_fax}
{/if} {if $settings.Company.company_website} {$lang.web_site}: {$settings.Company.company_website}
{/if} {if $settings.Company.company_orders_department} {$lang.email}: {$settings.Company.company_orders_department}
{/if}
{$lang.invoice_title}
{$lang.order}:  #{$order_info.order_id}
{$lang.status}:  {include file="orders/order_status.tpl" status=$order_info.status display="view"}
{$lang.date}:  {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}
{$lang.payment_method}:  {$order_info.payment_method.payment}
{if $order_info.shipping} {$lang.shipping_method}:  {$order_info.shipping}
{/if}


{* /Invoice header *} {* Customer info *}
{if $order_info.title} {/if} {if $order_info.firstname} {/if} {if $order_info.lastname} {/if} {if $order_info.company} {/if}
{$lang.personal_information}
{$lang.title}:  {$order_info.title_descr}
{$lang.first_name}:  {$order_info.firstname}
{$lang.last_name}:  {$order_info.lastname}
{$lang.company}:  {$order_info.company}
  {if $order_info.phone} {/if} {if $order_info.email} {/if} {if $order_info.fax} {/if} {if $order_info.url} {/if}
{$lang.contact_information}
{$lang.phone}:  {$order_info.phone}
{$lang.email}:  {$order_info.email}
{$lang.fax}:  {$order_info.fax}
{$lang.web_site}:  {$order_info.url}



{if $order_info.b_title} {/if} {if $order_info.b_firstname} {/if} {if $order_info.b_lastname} {/if} {if $order_info.b_address} {/if} {if $order_info.b_address_2} {/if} {if $order_info.b_city} {/if} {if $order_info.b_state} {/if} {if $order_info.b_country} {/if} {if $order_info.b_zipcode} {/if}
{$lang.billing_address}
{$lang.title}:  {$order_info.b_title_descr}
{$lang.first_name}:  {$order_info.b_firstname}
{$lang.last_name}:  {$order_info.b_lastname}
{$lang.address}:  {$order_info.b_address}
{$lang.address_2}:  {$order_info.b_address_2}
{$lang.city}:  {$order_info.b_city}
{$lang.state}:  {$order_info.b_state_descr}
{$lang.country}:  {$order_info.b_country_descr}
{$lang.zip_postal_code}:  {$order_info.b_zipcode}
  {if $order_info.s_title} {/if} {if $order_info.s_firstname} {/if} {if $order_info.s_lastname} {/if} {if $order_info.s_address} {/if} {if $order_info.s_address_2} {/if} {if $order_info.s_city} {/if} {if $order_info.s_state} {/if} {if $order_info.s_country} {/if} {if $order_info.s_zipcode} {/if}
{$lang.shipping_address}
{$lang.title}:  {$order_info.s_title_descr}
{$lang.first_name}:  {$order_info.s_firstname}
{$lang.last_name}:  {$order_info.s_lastname}
{$lang.address}:  {$order_info.s_address}
{$lang.address_2}:  {$order_info.s_address_2}
{$lang.city}:  {$order_info.s_city}
{$lang.state}:  {$order_info.s_state_descr}
{$lang.country}:  {$order_info.s_country_descr}
{$lang.zip_postal_code}:  {$order_info.s_zipcode}


{* /Customer info *} {* Ordered products *}
{if $order_info.use_product_discount} {/if} {foreach from=$order_info.items item="oi"} {if $order_info.use_product_discount} {/if} {math equation="amount * (unit_price - discount)" amount=$oi.amount|default:"1" unit_price=$oi.price|default:"0" discount=$oi.extra.discount|default:"0" assign="oi_total"} {/foreach}
{$lang.sku} {$lang.product} {$lang.options} {$lang.amount} {$lang.unit_price}{$lang.discount}{$lang.subtotal}
{$oi.product_code|default:" "} {$oi.product} {include file="common_templates/options_info.tpl" product_options=$oi.extra.product_options} {$oi.amount} {include file="common_templates/price.tpl" value=$oi.price}{if $oi.extra.discount|floatval}{include file="common_templates/price.tpl" value=$oi.extra.discount}{else} {/if}{include file="common_templates/price.tpl" value=$oi_total} 
{* /Ordered products *} {* Order totals *}
{if $order_info.discount|floatval} {/if} {if $order_info.discount_coupon} {foreach from=$order_info.discount_coupon item="coupon" key="key"} {if $order_info.shipping_coupon != $key} {/if} {/foreach} {/if} {if ($order_info.discount_total|floatval)} {/if} {if $order_info.taxes} {foreach from=$order_info.taxes item=tax_data} {if $tax_data.regnumber} {/if} {/foreach} {/if} {if $order_info.shipping} {* *} {if $order_info.shipping_coupon} {assign var="key" value=$order_info.shipping_coupon} {/if} {/if}
{$lang.subtotal}:  {include file="common_templates/price.tpl" value=$order_info.subtotal}
{$lang.discount}:  {include file="common_templates/price.tpl" value=$order_info.discount}
{$lang.discount_coupon} {$key} ({include file="common_templates/price.tpl" value=$coupon}) {include file="common_templates/price.tpl" value=$coupon}
{$lang.discounted_subtotal}:  {include file="common_templates/price.tpl" value=$order_info.discounted_subtotal}
{if $tax_data.price_includes_tax == 'Y'}{$lang.including_tax}{else}{$lang.tax}{/if} {$tax_data.description} ({include file="common_templates/price.tpl" value=$tax_data.rate_value number_type=$tax_data.rate_type}):  {include file="common_templates/price.tpl" value=$tax_data.tax_subtotal}
{$lang.registration_number}:  {$tax_data.regnumber}
{$lang.taxed_subtotal}:  {include file="common_templates/price.tpl" value=$order_info.taxed_subtotal}
{$lang.shipping}:  {$order_info.shipping}
{$lang.shipping_cost}:  {include file="common_templates/price.tpl" value=$order_info.shipping_cost}
{$lang.discount_coupon} {$key} ({$lang.free_shipping}): {include file="common_templates/price.tpl" value=$order_info.discount_coupon.$key}
{$lang.total_cost}:  {include file="common_templates/price.tpl" value=$order_info.total}

{* /Order totals *} {if $order_info.notes}

{$lang.notes}:
{$order_info.notes|nl2br}

{/if}
{if $content == 'invoice'}
{include file="buttons/continue_shopping.tpl" but_href=$continue_url|default:$index_script but_arrow="on" skin_area="customer"} {include file="buttons/button_popup.tpl" but_text=$lang.print_invoice but_href="`$index_script`?`$target_name`=orders&`$mode_name`=print_invoice&order_id=`$order_info.order_id`" width="800" height="600" skin_area="customer"}
{/if} {/if}