{% load static django_afip %} {# pdf is a ReceiptPDF object #} {# taxpayer is a TaxPayer object #} {# TODO: ¿How do we deal with multiple entries with different VAT types? #}
{% if taxpayer.logo %} Logo
{% endif %} {{ pdf.issuing_name }}
{{ pdf.issuing_address|linebreaksbr }}
{% if pdf.issuing_email %} {{ pdf.issuing_email }}
{% endif %} {{ pdf.vat_condition }}
{{ pdf.receipt.receipt_type.description|slice:"-1:" }}
Código {{ pdf.receipt.receipt_type.code }}
{{ pdf.receipt.receipt_type.description }}
{{ pdf.receipt.formatted_number }}
Fecha de emisión:
CUIT: {{ taxpayer.cuit|format_cuit }}
Ingresos Brutos: {{ pdf.gross_income_condition }}
Inicio de Actividades: {{ taxpayer.active_since }}

Facturado a:
Condición de IVA: {{ pdf.client_vat_condition }}
Condición de Pago: {{ pdf.sales_terms }}
{{ pdf.client_name }}, {{ pdf.receipt.document_type }} {{ pdf.receipt.document_number }}
{{ pdf.client_address|linebreaksbr }}
{% if not pdf.receipt.concept.code == "1" %}
Periodo del servicio: {{ pdf.receipt.service_start }} al {{ pdf.receipt.service_end }}
Vencimiento: {{ pdf.receipt.expiration_date }}
{% endif %}

{% for entry in pdf.receipt.entries.all %} {% endfor %}
Descripción Cantidad Precio Unitario Monto
{{ entry.description }} {{ entry.quantity }} {{ entry.unit_price }} {{ entry.total_price }}
{{ pdf.receipt.total_amount }}