{% load staticfiles django_afip %} {# pdf is a ReceiptPDF object #} {# taxpayer is a TaxPayer object #} {# TODO: ¿How do we deal with multiple entries with different VAT types? #}
{{ pdf.issuing_name }}
{{ pdf.issuing_address|linebreaks }} {% if pdf.issuing_email %} {{ pdf.issuing_email }}
{% endif %} Condición de IVA: {{ pdf.vat_condition }}
{{ pdf.receipt.receipt_type.description }}
Código {{ pdf.receipt.receipt_type.code }}
{{ pdf.receipt.receipt_type.description }}
{# TODO: We probably want a tag that formats an invoice number! #} Nº {{ pdf.receipt|receiptnumber }}
Fecha:
CUIT {{ taxpayer.cuit|format_cuit }}
Ingresos Brutos: {{ pdf.gross_income_condition }}
Inicio de Actividades: {{ taxpayer.profile.active_since }}

Facturado a:
{{ pdf.client_name }}, {{ pdf.receipt.document_type }} {{ pdf.receipt.document_number }} {{ pdf.client_address|linebreaks }} {{ pdf.vat_condition }}
{{ pdf.sales_terms }}

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