---
name: standard-invoice
title: Factura
description: Plantilla de factura comercial estándar
category: invoices
locale: es
layout: invoice
outputFormat: pdf
pageSize: A4
orientation: portrait
metadata:
  author: Plyaz Storage Package
  subject: Factura
---

## Facturar a

<div class="customer-info">
  <p><strong>{{customerName}}</strong></p>
  {{#if customerCompany}}<p>{{customerCompany}}</p>{{/if}}
  {{#if customerAddress}}<p>{{customerAddress}}</p>{{/if}}
  {{#if customerCity}}<p>{{customerCity}}, {{customerState}} {{customerZip}}</p>{{/if}}
  {{#if customerEmail}}<p>Email: {{customerEmail}}</p>{{/if}}
  {{#if customerPhone}}<p>Teléfono: {{customerPhone}}</p>{{/if}}
</div>

---

## Artículos

| Descripción | Cantidad | Precio unitario | Importe |
|-------------|----------|-----------------|---------|
{{#each items}}
| {{description}} | {{quantity}} | {{formatCurrency unitPrice}} | {{formatCurrency (multiply quantity unitPrice)}} |
{{/each}}

---

## Resumen

<div class="totals">
  <div class="totals-box">
    <div class="totals-row">
      <span>Subtotal:</span>
      <span>{{formatCurrency (invoiceTotal items taxRate discountPercent shippingCost "subtotal")}}</span>
    </div>
    {{#if discountPercent}}
    <div class="totals-row">
      <span>Descuento ({{discountPercent}}%):</span>
      <span>-{{formatCurrency (invoiceTotal items taxRate discountPercent shippingCost "discount")}}</span>
    </div>
    {{/if}}
    {{#if taxRate}}
    <div class="totals-row">
      <span>IVA ({{taxRate}}%):</span>
      <span>{{formatCurrency (invoiceTotal items taxRate discountPercent shippingCost "tax")}}</span>
    </div>
    {{/if}}
    {{#if shippingCost}}
    <div class="totals-row">
      <span>Envío:</span>
      <span>{{formatCurrency shippingCost}}</span>
    </div>
    {{/if}}
    <div class="totals-row total">
      <span><strong>Total a pagar:</strong></span>
      <span><strong>{{formatCurrency (invoiceTotal items taxRate discountPercent shippingCost "total")}}</strong></span>
    </div>
  </div>
</div>

---

{{#if notes}}
## Notas

{{notes}}
{{/if}}
