# Plantilla de Impresión Facturas

## Datos que siempre se deben mostrar

```
resumen.NumeroFactura
resumen.Fecha
resumen.EmpresaRazonSocial
resumen.EmpresaNIF
resumen.EmpresaDireccion
resumen.EmpresaEmail
totales
conceptos
```

## Visible Si (v-if="resumen.ClienteNIF")

```html
resumen.ClienteNombre
resumen.ClienteNIF
resumen.ClienteDireccion
resumen.ClienteEmail
```

## Datos Visibles solo si están rellenados

```
resumen.LogoURL
resumen.FechaVencimiento
resumen.DireccionEnvio
resumen.CondicionesPago
resumen.Notas
resumen.EnlacePago
resumen.VerifactuQR
```

## Tabla BI

Exactamente

```
 <table style="margin-top:20px; border-collapse:collapse; font-size:13px;">
              <thead style="background-color:#edf2f7;">
                <tr v-if="hayRE">
                  <th style="text-align:left; padding:8px; color:#4a5568;">Tipo</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">Base</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">Cuota IVA</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">RE %</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">Cuota RE</th>
                </tr>
                <tr v-else>
                  <th style="text-align:left; padding:8px; color:#4a5568;">Tipo</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">Base</th>
                  <th style="text-align:right; padding:8px; color:#4a5568;">Cuota</th>
                </tr>
              </thead>
              <tbody>
                <template v-for="(bi, i) in baseImponible" :key="i">
                  <tr style="border-bottom:1px solid #e2e8f0;" v-if="hayRE">
                    <td style="padding:8px; color:#2d3748;">{{ bi.IVAPorciento }}%</td>
                    <td style="text-align:right; padding:8px;">{{ euro(bi.BaseImponible) }}</td>
                    <td style="text-align:right; padding:8px;">{{ euro(bi.CuotaIVA) }}</td>
                    <td style="text-align:right; padding:8px;">{{ bi.REPorciento }}</td>
                    <td style="text-align:right; padding:8px;">{{ euro(bi.CuotaRE) }}</td>
                  </tr>
                  <tr style="border-bottom:1px solid #e2e8f0;" v-else>
                    <td style="padding:8px; color:#2d3748;">{{ bi.IVAPorciento }}%</td>
                    <td style="text-align:right; padding:8px;">{{ euro(bi.BaseImponible) }}</td>
                    <td style="text-align:right; padding:8px;">{{ euro(bi.CuotaIVA) }}</td>
                  </tr>
                </template>
              </tbody>
            </table>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.dinaup.com/desarrollo/flex/documentos-dinamicos/plantilla-de-impresion-facturas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
