{% extends 'base.html.twig' %}

{% block title %}Factura{% endblock %}

{% block body %}
    <h1>Factura</h1>

    <table class="table">
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ factura.id }}</td>
            </tr>
            <tr>
                <th>Clave</th>
                <td>{{ factura.clave }}</td>
            </tr>
            <tr>
                <th>Ruc</th>
                <td>{{ factura.ruc }}</td>
            </tr>
            <tr>
                <th>Serie</th>
                <td>{{ factura.serie }}</td>
            </tr>
            <tr>
                <th>Numero</th>
                <td>{{ factura.numero }}</td>
            </tr>
            <tr>
                <th>Cliente</th>
                <td>{{ factura.cliente }}</td>
            </tr>
            <tr>
                <th>Estado</th>
                <td>{{ factura.estado }}</td>
            </tr>
            <tr>
                <th>Emision</th>
                <td>{{ factura.emision ? factura.emision|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>Xml</th>
                <td>{{ factura.xml }}</td>
            </tr>
            <tr>
                <th>FecAutorizacion</th>
                <td>{{ factura.fecAutorizacion ? factura.fecAutorizacion|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>CreatedAt</th>
                <td>{{ factura.createdAt ? factura.createdAt|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
            <tr>
                <th>UpdatedAt</th>
                <td>{{ factura.updatedAt ? factura.updatedAt|date('Y-m-d H:i:s') : '' }}</td>
            </tr>
        </tbody>
    </table>

    <a href="{{ path('factura_index') }}">back to list</a>

    <a href="{{ path('factura_edit', {'id': factura.id}) }}">edit</a>

    {{ include('factura/_delete_form.html.twig') }}
{% endblock %}
