{$_logo = "{$wa_app_static_url}img/crm.svg?v={$wa->version()}"} {if !empty($company.logo_url)} {$_logo = $company.logo_url} {/if} {if !empty($company.invoice_options) && !empty($company.invoice_options.headers_color)} {$_color = $company.invoice_options.headers_color} {/if}
[`Invoice`] [`#`]{$invoice.number|escape} [`issued on`] {$invoice.invoice_date|wa_date}
{$invoice.amount|wa_format_amount_currency:$invoice.currency_id}
{$pay_button}[`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}
[`Billed To`]
{$_city = $customer->get('address:city', 'default')} {if $customer.company}{$customer.company|escape}{else}{$customer.name|escape}{/if}{if $_city}, {$_city|escape} {/if}
| № | [`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} | {$_subtotal = $_subtotal + $_item_total}
| [`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} |
[`Comment`]
{$invoice.comment}