{% if ($we.company && $we.company != "") %}
{$we.company}
{% endif %}
{% if ($we.registration && $we.registration != "") %}
Тіркеу/салық №: {$we.registration}
{% endif %}
{% if ($we.address && $we.address != "") %}
{$we.address}
{% endif %}
Тапсырыс № {$doc.number}
Күні: {$doc.date_localized}
Клиент: {$doc.customer_name}
--------------------------------
    Саны       Баға         Сома
{% loop in $table as $row %}
{$row.name|sprintf(%-32.32s)}
{$row.count|number|sprintf(%8s)} {$row.price|decimal|sprintf(%10s)} {$row.sum|decimal|sprintf(%12s)}
Қаптама коэф.: {$row.koef|number}
--------------------------------
{% onEmpty %}
Құжатта тауарлар жоқ
--------------------------------
{% endloop %}
{% if ($doc.has_discount == 1) %}
Жеңілдікке дейін: {$doc.sum_no_discount|decimal} грн
Жеңілдік: {$doc.discount|decimal} грн
{% endif %}
Барлығы: {$doc.sum|decimal} грн
{% if ($doc.info && $doc.info != "") %}
Ескертпе: {$doc.info}
{% endif %}
{% if ($we.comment && $we.comment != "") %}
{$we.comment}
{% endif %}


