{if !empty($company.invoice_options) && !empty($company.invoice_options.headers_color)} {$_color = $company.invoice_options.headers_color} {/if}

[`Invoice`]

{$pay_button}

[`Billed To`]

{$_city = $customer->get('address:city', 'default')} {if $customer.company}{$customer.company|escape}{else}{$customer.name|escape}{/if}{if $_city}, {$_city|escape} {/if}

[`Created`]

{$invoice.invoice_date|wa_date}

[`Invoice`]

[`#`]{$invoice.number|escape}

[`Amount`] ({$invoice.currency_id})

{$invoice.amount|wa_format_amount_currency:$invoice.currency_id}

[`Provider`]

{ifempty($company.name, $invoice.company_id)|escape}{if !empty($company.address)}, {$company.address|escape|nl2br}{/if}{if !empty($company.phone)}, {$company.phone|escape}{/if}

{$_subtotal = 0} {foreach $invoice.items as $_item} {$_item_total = ($_item.quantity * $_item.price)} {$_subtotal = $_subtotal + $_item_total} {/foreach}
[`Product or service`] [`Qty`] [`Price`] [`Amount`] ({$invoice.currency_id})
{$_item@iteration} {$_item.name|escape} {$_item.price|wa_format} x {$_item.quantity|wa_format} {$_item.quantity|wa_format} {$_item.price|wa_format} {$_item_total|wa_format}

{if ($invoice.tax_type != "NONE")} {$_type = ""} {if ($invoice.tax_type == "INCLUDE")} {$_type = "[`including`]"} {/if} {$_name = "[`tax`]"} {if !empty($invoice.tax_name)} {$_name = $invoice.tax_name} {/if} {/if}
[`Subtotal`] {$_subtotal|wa_format}
{if !empty($_type)}{$_type} {/if}{$_name|escape} {$invoice.tax_percent|escape}% {$invoice.tax_amount|wa_format}
[`Total`] {$invoice.amount|wa_format_amount_currency:$invoice.currency_id}
{if !empty($invoice.comment)}

[`Comment`]

{$invoice.comment}

{/if}