{* $Id: invoice.tpl 2528 2006-11-13 10:03:35Z zeke $ *} {if $order_info}
{* Invoice header *} {if $settings.Modules.barcode == 'Y'} {/if}

{$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}
{include file="addons/barcode/barcode.tpl" id=$order_info.order_id}


{* /Invoice header *} {* Customer info *} {assign var="profile_fields" value='I'|fn_get_profile_fields} {split data=$profile_fields.C size=2 assign="contact_fields" simple=true}
{include file="profiles/profile_fields_info.tpl" fields=$contact_fields.0 title=$lang.contact_information user_data=$order_info}
  {include file="profiles/profile_fields_info.tpl" fields=$contact_fields.1 user_data=$order_info}

{include file="profiles/profile_fields_info.tpl" fields=$profile_fields.B title=$lang.billing_address user_data=$order_info}
 

{include file="profiles/profile_fields_info.tpl" fields=$profile_fields.S title=$lang.shipping_address user_data=$order_info}


{* /Customer info *} {* Ordered products *}
{if $order_info.use_discount} {/if} {if $order_info.taxes} {/if} {foreach from=$order_info.items item="oi"} {if $settings.Modules.product_configurator == 'Y' && $oi.extra.configuration} {include file="addons/product_configurator/invoice_configurable.tpl"} {elseif $settings.Modules.product_configurator != 'Y' || !$oi.extra.in_configuration} {if $order_info.use_discount} {/if} {if $order_info.taxes} {/if} {/if} {/foreach}
{$lang.sku} {$lang.product} {$lang.options} {$lang.amount} {$lang.unit_price}{$lang.discount}{$lang.tax}{$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}{if $oi.tax_value}{include file="common_templates/price.tpl" value=$oi.tax_value}{else} - {/if}{include file="common_templates/price.tpl" value=$oi.subtotal} 
{* /Ordered products *} {* Order totals *}
{if $order_info.discount|floatval} {/if} {if $order_info.coupons} {foreach from=$order_info.coupons item="coupon" key="key"} {/foreach} {/if} {if $order_info.taxes} {foreach from=$order_info.taxes item=tax_data} {/foreach} {/if} {if $order_info.tax_exempt == 'Y'} {/if} {if $order_info.payment_surcharge|floatval} {/if} {if $order_info.shipping} {/if}
{$lang.subtotal}:  {include file="common_templates/price.tpl" value=$order_info.subtotal}
{$lang.including_discount}:  {include file="common_templates/price.tpl" value=$order_info.discount}
{$lang.discount_coupon} {$key} ({if $coupon.free_shipping == 'Y'}{$lang.free_shipping}{else}{include file="common_templates/price.tpl" value=$coupon.value number_type=$coupon.value_type}{/if})
{$lang.including_taxes}:   
{$tax_data.description} {include file="common_templates/price.tpl" value=$tax_data.rate_value number_type=$tax_data.rate_type} {if $tax_data.regnumber}({$tax_data.regnumber}){/if}:  {include file="common_templates/price.tpl" value=$tax_data.tax_subtotal}
{$lang.tax_exempt}  
{$lang.payment_surcharge}:  {include file="common_templates/price.tpl" value=$order_info.payment_surcharge}
{$lang.shipping_cost}:  {include file="common_templates/price.tpl" value=$order_info.shipping_cost}
{$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}