{hook key=invoice_top}

{$data.config._store_shopowner_company} - {$data.config._store_country}-{$data.config._store_shopowner_zip} {$data.config._store_shopowner_city} - {$data.config._store_shopowner_streetaddress} {if !empty($data.order.order_data.billing_company)} {$data.order.order_data.billing_company} {/if} {if !empty($data.order.order_data.billing_company_2)} {$data.order.order_data.billing_company_2} {/if} {if !empty($data.order.order_data.billing_company_3)} {$data.order.order_data.billing_company_3} {/if} {$data.order.order_data.billing_firstname} {$data.order.order_data.billing_lastname} {$data.order.order_data.billing_street_address} {if !empty($data.order.order_data.billing_address_addition)} {$data.order.order_data.billing_address_addition} {/if} {$data.order.order_data.billing_postcode} - {$data.order.order_data.billing_city} {$data.order.order_data.billing_country} | {txt key=TEXT_DELIVERY_ADDRESS}: {if !empty($data.order.order_data.delivery_company)} {$data.order.order_data.delivery_company} {/if} {if !empty($data.order.order_data.delivery_company_2)} {$data.order.order_data.delivery_company_2} {/if} {if !empty($data.order.order_data.delivery_company_3)} {$data.order.order_data.delivery_company_3} {/if} {$data.order.order_data.delivery_firstname} {$data.order.order_data.delivery_lastname} {$data.order.order_data.delivery_street_address} {if !empty($data.order.order_data.delivery_address_addition)} {$data.order.order_data.delivery_address_addition} {/if} {$data.order.order_data.delivery_postcode} - {$data.order.order_data.delivery_city} {$data.order.order_data.delivery_country} | {txt key=TEXT_XT_ORDERS_INVOICES_VAT_ID}: {$data.config._store_shopowner_vatid} {txt key=TEXT_XT_ORDERS_INVOICES_DATE}: {$data.invoice.invoice_issued_date|date_format:"%d/%m/%Y"} {if $data.invoice.invoice_due_date && !$data.order.order_data.bank_details.0.bad_due_date} {txt key=TEXT_XT_ORDERS_INVOICES_DUE_DATE}: {$data.invoice.invoice_due_date|date_format:"%d/%m/%Y"} {/if} {txt key=TEXT_XT_ORDERS_INVOICES_ORDERED_DATE}: {$data.invoice.invoice_ordered_date|date_format:"%d/%m/%Y"} {txt key=TEXT_PAYMENT_ON_INVOICE}: {$data.order.order_data.payment_name} {if $data.order.order_data.transaction_id}{/if} {txt key=TEXT_XT_ORDERS_INVOICES_CUSTOMERS_ID}: {$data.invoice.customers_id} {if !empty($data.order.order_data.customers_vat_id)} {txt key=TITLE_CUSTOMER} {txt key=TEXT_XT_ORDERS_INVOICES_VAT_ID}: {$data.order.order_data.customers_vat_id} {/if} {txt key=TEXT_XT_ORDERS_INVOICES_NUMBER}: {$data.invoice.invoice_prefix}{$data.invoice.invoice_number} {txt key=TEXT_XT_ORDERS_INVOICES_ORDER_ID}: {$data.invoice.orders_id}

{if $data.invoice.invoice_subtotal_discount>0} {assign var="showDiscount" value=true} {else} {assign var="showDiscount" value=false} {/if} {if count($data.taxes)} {assign var="showVat" value=true} {else} {assign var="showVat" value=false} {/if}

{txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_MODEL} | {txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_NAME} | {txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_QUANTITY} | {txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_PRICE} {if $showDiscount} | {txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_DISCOUNT} {/if} {if $showVat} | {txt key=TEXT_XT_ORDERS_INVOICES_VAT} {/if} | {txt key=TEXT_XT_ORDERS_INVOICES_PRODUCTS_TOTAL_PRICE}
{foreach from=$data.products item=product name=products}
{$product.products_model} | {$product.products_name} {foreach item=option from=$product.products_info_data.options} {$option.option_group_name}: {$option.option_value_name} {/foreach} {if $product.serial_number} {txt key=TEXT_SERIAL_NUMBER} {$product.serial_number}{/if} | {$product.products_quantity} | {$product.products_price_formatted} {$data.invoice.invoice_currency} {if $showDiscount} | {$product.products_total_discount_formatted} {$data.invoice.invoice_currency} {/if} {if $showVat} | {$product.products_tax_rate_formatted}% {/if} | {$product.products_final_total_price_formatted} {$data.invoice.invoice_currency}
{/foreach}

- {txt key=TEXT_XT_ORDERS_INVOICES_SUBTOTAL}: {$data.invoice.invoice_subtotal_price_formatted} {$data.invoice.invoice_currency}
{if $data.invoice.invoice_payment_cost > 0}
- {txt key=TEXT_XT_ORDERS_INVOICES_PAYMENT_COST} ({$data.invoice.invoice_payment_name}): {$data.invoice.invoice_payment_cost_formatted} {$data.invoice.invoice_currency}
{/if}
- {txt key=TEXT_XT_ORDERS_INVOICES_SHIPPING_COST}: {$data.invoice.invoice_shipping_total_formatted} {$data.invoice.invoice_currency}
{foreach from=$data.invoice.totalLines item="totalLine" name="totalLines"}
- {$totalLine.invoice_payment_name} {$totalLine.invoice_payment_tax_rate}% : {$totalLine.invoice_payment_cost_formatted} {$data.invoice.invoice_currency}
{/foreach} {if count($data.taxes)} {foreach from=$data.taxes item="tax" name="taxes"}
- {txt key=TEXT_XT_ORDERS_INVOICES_VAT} {$tax.rate_formatted}% : {$tax.amount_formatted} {$data.invoice.invoice_currency}
{/foreach} {/if} {if $data.invoice.invoice_coupon_redeem}
- {txt key=TEXT_XT_ORDERS_INVOICES_COUPON}: {$data.invoice.invoice_coupon_price_formatted} {$data.invoice.invoice_currency}
{/if}
- {txt key=TEXT_XT_ORDERS_INVOICES_TOTAL}: {$data.invoice.invoice_total_formatted} {$data.invoice.invoice_currency}
- {txt key=TEXT_XT_ORDERS_INVOICES_TOTAL_NET}: {$data.invoice.invoice_total_formatted_net} {$data.invoice.invoice_currency}
{hook key=invoice_after_total}
- {txt key=TEXT_TOTAL_WEIGHT_NET_INVOICE}: {$data.order.total_weight.formated}
{hook key=invoice_totals_bottom}

{if $data.order.order_data.payment_info_html} {/if} {if $data.invoice.invoice_bank_details}

- {txt key=TEXT_INVOICE_INSTRUCTION_HEADING}:

{foreach item=bd from=$data.invoice.invoice_bank_details}

- {$bd|nl2br}

{/foreach}
{elseif $data.config._store_orders_invoices_bank}

- {txt key=TEXT_XT_ORDERS_INVOICES_BANKDETAILS}:
- {$data.config._store_orders_invoices_bank|nl2br}

{/if} {if $data.order.order_data.payment_code == 'xt_paypal_checkout_pui'}
{txt key="TEXT_PAYPAL_CHECKOUT_HINWEIS_ABTRETUNG"}
{/if}
{if $data.invoice.invoice_comment}

- {txt key=TEXT_XT_ORDERS_INVOICES_COMMENTS}:
- {$data.invoice.invoice_comment|nl2br}

{/if} {literal}
{/literal}
{hook key=invoice_bottom}