---
name: purchase-receipt
title: Recibo
description: Recibo de compra para transacciones minoristas
category: receipts
locale: es
layout: receipt
outputFormat: pdf
pageSize: A4
orientation: portrait
metadata:
  author: Plyaz Storage Package
  subject: Recibo
---

## Artículos comprados

| Artículo | Precio |
|----------|--------|
{{#each items}}
| {{name}} {{#if quantity}}x{{quantity}}{{/if}} | {{formatCurrency price}} |
{{/each}}

---

<div class="totals">
  <div class="totals-row">
    <span>Subtotal:</span>
    <span>{{formatCurrency (receiptTotal items taxRate discount "subtotal")}}</span>
  </div>
  {{#if taxRate}}
  <div class="totals-row">
    <span>IVA ({{taxRate}}%):</span>
    <span>{{formatCurrency (receiptTotal items taxRate discount "tax")}}</span>
  </div>
  {{/if}}
  {{#if discount}}
  <div class="totals-row">
    <span>Descuento:</span>
    <span>-{{formatCurrency discount}}</span>
  </div>
  {{/if}}
  <div class="totals-row total">
    <span><strong>TOTAL:</strong></span>
    <span><strong>{{formatCurrency (receiptTotal items taxRate discount "total")}}</strong></span>
  </div>
</div>

---

{{#if paymentMethod}}
**Método de pago:** {{paymentMethod}}
{{/if}}

{{#if changeGiven}}
**Efectivo recibido:** {{formatCurrency cashTendered}}
**Cambio:** {{formatCurrency changeGiven}}
{{/if}}
