{% 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 }}
{% if pdf.issuing_email %} {{ pdf.issuing_email }}
{% endif %} {{ 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:
{# TODO: A tag to format CUITs? #} CUIT {{ taxpayer.cuit }}
Ingresos Brutos: {{ pdf.gross_income_condition }}
Inicio de Actividades: {{ taxpayer.profile.active_since }}

Facturado a:
{{ pdf.client_name }}
{{ pdf.client_address }}
{{ pdf.receipt.document_type }} {{ pdf.receipt.document_number }}
{{ 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 }}