{* $Id: order_invoice.tpl,v 1.37.2.1 2007/01/18 07:38:39 max Exp $ *} {if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if} {config_load file="$skin_config"} {if $is_nomail ne 'Y'}

{/if} {if $order.customer_notes ne ""} {/if}


  {$lng.lbl_invoice}
{$config.Company.company_name}{$lng.lbl_dot_com}
{$config.Company.location_address} 
{$config.Company.location_city}  {if $config.Company.location_country_has_states}{$config.Company.location_state}{/if}  {$config.Company.location_zipcode} 

{$lng.lbl_store_hours}: {$lng.lbl_open_hours} 
{if $config.Company.company_phone}{$lng.lbl_phone_1_title}: {$config.Company.company_phone} 
{/if} {if $config.Company.company_phone_2}{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2} 
{/if} {if $config.Company.company_fax}{$lng.lbl_fax}: {$config.Company.company_fax} 
{/if}
{if $config.Company.orders_department}{$lng.lbl_email}: {$config.Company.orders_department} 
{/if} {if $order.applied_taxes} {foreach from=$order.applied_taxes key=tax_name item=tax} {$lng.lbl_state_tax_id}: {$tax.regnumber} 
{/foreach} {/if}

 {$lng.lbl_customer_info}    {$lng.lbl_order_info}
{if $_userinfo.default_fields.firstname} {/if} {if $_userinfo.default_fields.phone} {/if}
{if $_userinfo.default_fields.fax} {/if} {if $_userinfo.default_fields.email} {/if} {if $_userinfo.default_fields.tax_number} {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'C' || $v.section eq 'P'} {/if} {/foreach}
Name:  {$order.firstname} {$order.lastname}
{$lng.lbl_phone}:  {$order.phone}
{$lng.lbl_fax}:  {$order.fax}
{$lng.lbl_email}:  {$order.email}
{$lng.lbl_tax_number}:  {$order.tax_number}
{$v.title}:  {$v.value}
  {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'S'} {/if} {/foreach}
{$lng.lbl_date}:  {$order.date|date_format:$config.Appearance.date_format}, {$order.date|date_format:$config.Appearance.time_format}
{$lng.lbl_order_id}:  #{$order.orderid}
{$lng.lbl_order_status_invoice}:  {include file="main/order_status.tpl" status=$order.status mode="static"}
{$lng.lbl_payment_method}:  {$order.payment_method}
{$lng.lbl_delivery}:  {$order.shipping|trademark|default:$lng.txt_not_available}
xx:  xx

{assign var="is_header" value=""} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'A'} {if $is_header eq ''} {/if} {if $config.Email.show_cc_info eq "Y" and $show_order_details eq "Y"} {/if} {if $order.netbanx_reference} {/if}
 {$lng.lbl_billing_address}    {$lng.lbl_shipping_address}
{if $_userinfo.default_fields.b_firstname} {/if} {if $_userinfo.default_fields.b_address} {/if} {if $_userinfo.default_fields.b_city} {/if} {if $_userinfo.default_fields.b_country} {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'B'} {/if} {/foreach}
{$order.b_firstname} {$order.b_lastname}
    {$order.b_address}
{$order.b_address_2}
{$order.b_city} {$order.b_state} {$order.b_zipcode}
{$order.b_countryname}
{$v.title}:  {$v.value}
  {if $_userinfo.default_fields.s_firstname} {/if} {if $_userinfo.default_fields.s_address} {/if} {if $_userinfo.default_fields.s_city} {/if} {if $_userinfo.default_fields.s_country} {/if} {foreach from=$_userinfo.additional_fields item=v} {if $v.section eq 'S'} {/if} {/foreach}
    {$order.s_firstname} {$order.s_lastname}
    {$order.s_address}
{$order.s_address_2}
{$order.s_city} {$order.s_state} {$order.s_zipcode}
{$order.s_countryname}
{$v.title}:  {$v.value}
 
{$lng.lbl_additional_information}  
{assign var="is_header" value="E"} {/if} {/if} {/foreach} {if $is_header eq 'E'}
{$v.title} {$v.value}
 
 
{$lng.lbl_order_payment_details}  
{$order.details|replace:"\n":"
"}
NetBanx Reference: {$order.netbanx_reference}


{include file="mail/html/order_data.tpl"}


{$lng.lbl_customer_notes}
{$order.customer_notes}


{$lng.txt_thank_you_for_purchase}