{% extends "base.html" %} {% block title %}Rectificativa {{ rect.numero }}{% endblock %} {% block page_title %}Rectificativa {{ rect.numero }}{% endblock %} {% block topbar_actions %} Descargar PDF {% if rect.origen_numero %} Ver factura original {% endif %}
{% endblock %} {% block content %}

{{ empresa.nombre }}

{% if empresa.nif %}
NIF: {{ empresa.nif }}
{% endif %} {% if empresa.direccion %}
{{ empresa.direccion }}
{% endif %} {% if empresa.cp or empresa.ciudad %}
{{ empresa.cp }} {{ empresa.ciudad }}
{% endif %} {% if empresa.email %}
{{ empresa.email }}
{% endif %}

FACTURA RECTIFICATIVA

{{ rect.numero }}
{% if rect.origen_numero %}
Rectifica: {{ rect.origen_numero }}
{% endif %}
Fecha: {{ rect.fecha }}
{{ rect.estado|capitalize }}
{% if rect.motivo %}
Motivo: {{ rect.motivo }}
{% endif %} {% if rect.cliente_nombre %}
CLIENTE
{{ rect.cliente_nombre }}
{% if rect.cliente_nif %}
NIF: {{ rect.cliente_nif }}
{% endif %} {% if rect.cliente_direccion %}
{{ rect.cliente_direccion }}
{% endif %} {% if rect.cliente_email %}
{{ rect.cliente_email }}
{% endif %}
{% endif %}
{% for l in lineas %} {% endfor %}
Descripción Cant. Precio unit. Dto. Subtotal
{{ l.descripcion }} {{ l.cantidad }} {{ "%.2f"|format(l.precio_unitario) }} € {{ l.descuento_pct }}% {{ "%.2f"|format(l.subtotal) }} €
{% if rect.irpf_pct > 0 %} {% endif %}
Base imponible{{ "%.2f"|format(rect.subtotal) }} €
IVA ({{ rect.iva_pct }}%){{ "%.2f"|format(rect.iva_importe) }} €
IRPF ({{ rect.irpf_pct }}%)−{{ "%.2f"|format(rect.irpf_importe) }} €
TOTAL {{ "%.2f"|format(rect.total) }} €
{% if rect.notas %}
NOTAS
{{ rect.notas }}
{% endif %}
Estado
{% for estado, color in [('emitida','success'),('cancelada','secondary')] %}
{% endfor %}
{% endblock %}