{$_logo = false} {if !empty($company.logo_url)} {$_logo = $company.logo_url} {/if} {if !empty($company.invoice_options) && !empty($company.invoice_options.color)} {$_color = $company.invoice_options.color} {/if}
{if $customer.company} {$customer.company|escape} {else} {$customer.name|escape} {/if}
{$_city = $customer->get('address:city', 'default')} {if $_city}{$_city|escape}
{/if}{$invoice.invoice_date|wa_date}
{$invoice.due_date|wa_date}
[`#`]{$invoice.number|escape}
{$invoice.amount|wa_format_amount_currency:$invoice.currency_id}
| № | [`Product or service`] | [`Qty`] | [`Price`] | [`Amount`] |
| {$_item@iteration} | {$_item.name|escape} | {$_item.quantity|wa_format} | {$_item.price|wa_format} | {$_item_total|wa_format} | {$_subtotal = $_subtotal + $_item_total}
| [`Subtotal`] | {$_subtotal|wa_format} | |||
| {$_type = ""} {if ($invoice.tax_type == "INCLUDE")} {$_type = "[`including`]"} {/if} {$_name = "[`tax`]"} {if !empty($invoice.tax_name)} {$_name = $invoice.tax_name} {/if} {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} | |||
{$invoice.comment|default:""}