FURNIZOR
{{ tenant.nume }}
{% if tenant.cui %}CUI: {{ tenant.cui }}
{% endif %} {% if tenant.reg_com %}Reg. Com.: {{ tenant.reg_com }}
{% endif %} {% if tenant.adresa %}{{ tenant.adresa }}
{% endif %} {% if tenant.iban %}IBAN: {{ tenant.iban }}
{% endif %} {% if tenant.banca %}Banca: {{ tenant.banca }}{% endif %}

FACTURA Nr. {{ invoice.nr_factura }}

Data: {{ invoice.data_factura }}
CLIENT
{{ order.client_nume or 'N/A' }}
{% if order.client_cui %}CUI: {{ order.client_cui }}
{% endif %} {% if order.client_adresa %}{{ order.client_adresa }}{% endif %}
Auto: {{ order.nr_auto }} | Deviz: {{ order.id[:8]|upper }}
{% for l in lines %} {% endfor %}
#DescriereUMCant.Pret unit. (RON)Total (RON)
{{ loop.index }} {{ l.descriere }} {{ l.um or ('ore' if l.tip == 'manopera' else 'buc') }} {{ l.ore if l.tip == 'manopera' else l.cantitate }} {{ "%.2f"|format(l.pret_ora if l.tip == 'manopera' else l.pret_unitar) }} {{ "%.2f"|format(l.total or 0) }}
Manopera: {{ "%.2f"|format(order.total_manopera or 0) }} RON
Materiale: {{ "%.2f"|format(order.total_materiale or 0) }} RON
TOTAL: {{ "%.2f"|format(invoice.total or 0) }} RON