{% if ($we.company && $we.company != "") %}

{$we.company|html}

{% /if %} {% if ($we.registration && $we.registration != "") %}

Company registration or tax no.: {$we.registration|html}

{% /if %} {% if ($we.address && $we.address != "") %}

Address: {$we.address|html}

{% /if %} {% if ($we.billing && $we.billing != "") %}

Bank details: {$we.billing|html}

{% /if %}

Order No. {$doc.number|html}

Date: {$doc.date_localized|html}

Customer: {$doc.customer_name|html}

{% if ($doc.has_discount == 1) %} {% /if %} {% loop in $table as $row %} {% if ($doc.has_discount == 1) %} {% /if %} {% onEmpty %} {% endloop %}
Code Product Quantity Conversion factor Price, UAHDiscount, UAHAmount, UAH
{$row.code|html} {$row.name|html} {$row.count|number} {$row.koef|number} {$row.price|decimal}{$row.discount|decimal}{$row.sum|decimal}
There are no products in this order
{% if ($doc.has_discount == 1) %}

Subtotal: {$doc.sum_no_discount|decimal} UAH

Discount: {$doc.discount|decimal} UAH

{% /if %}

Total: {$doc.sum|decimal} UAH

{% if ($doc.info && $doc.info != "") %}

Note: {$doc.info|html}

{% /if %} {% if ($we.comment && $we.comment != "") %}

{$we.comment|html}

{% /if %}