{% extends '@Core/base.html.twig' %} {% block sectionTitle %}Factura{% endblock %} {% block breadcrumbLinks %}
  • Facturación
  • Editar
  • {% endblock %} {% block content %} {% form_theme form 'bootstrap_3_layout.html.twig' %}
    {% for flash_message in app.session.flashBag.get('success') %}
    {{ flash_message }}
    {% endfor %}
    Nº factura: {{ invoice.codeInvoice }}
    #Factura: {{ invoice.alias }}
    {% if roleRight == true %} {{ invoice.dealer.name }}
    {% else %} {{ invoice.dealer.name }}
    {% endif %} Fecha de creación: {{ invoice.dateCreation | date('d-m-Y \\a \\l\\a\\s H:i:s') }}
    {% if invoice.dateInvoiced %} Fecha de factura: {{ invoice.dateInvoiced | date('d-m-Y') }}
    {% endif %} {% if invoice.datePayed %} Fecha de pago: {{ invoice.datePayed | date('d-m-Y') }}
    {% endif %} {{ invoice.typeStatusinvoice.description }}
    {{ invoice.stocks }}
    RECIBIDOS
    {{ invoice.articles }}
    ARTICULOS
    {% if invoice.isTotalManual == false %}
    TOTAL P. COSTE
    {{ invoice.total }}
    DTO. ADICIONAL (%)
    {{ invoice.discount|number_format(2, ',', '.') }}€
    BASE IMPONIBLE
    0.00€
    IMPUESTOS ({{ totalTaxes }}%)
    0.00€
    {% endif %}
    TOTAL FACTURA
    {{ invoice.totalCustom|number_format(2, ',', '.') }}€
    {% if invoice.typeStatusInvoice.id == 1 %}
    {% endif %} {% if invoice.typeStatusInvoice.id == 5 %}
    {% endif %}
    RECEPCIONES EN ESTA FACTURA
    {% for obj in receptionsIntoInvoice %} {% endfor %}
    COD-Recepción Usuario creación Fecha Estado Proveedor Tienda recepción Albarán Unidades Artículos Total P.Coste Eliminar
    {{ obj[0].getAlias }} {% if obj[0].creator %}{{ obj[0].creator.name}}{% endif %} {{ obj[0].date | date('Ymd') }}{{ obj[0].getDate | date('d/m/Y H:i:s')}} {% if obj[0].threadReception | length > 0 %}
    Actualizando
    {% endif %} {{ obj[0].typeStatusReception.description }}
    {% if obj[0].getDealer %}{{ obj[0].getDealer.name }}{% endif %} {% if obj[0].getShop %}{{ obj[0].getShop.name }}{% endif %} {{ obj[0].getNumDeliveryNote }} {{ obj["stocks"] }} {{ obj["articles"] }} {{ obj["costPriceWithDiscountTotal"]|number_format(2, ',', '.') }}€ Eliminar
    {{ form_start(form) }} {{ form_errors(form) }}
    {{ form_row(form.company) }}
    {{ form_row(form.codeInvoice) }}
    {{ form_row(form.dateInvoiced) }}
    {{ form_row(form.datePayed) }} {{ form_row(form.daysPayment) }}
    {{ form_row(form.discount) }}
    {{ form_row(form.totalCustom) }} {{ form_row(form.isTotalManual) }}
    {{ form_row(form.note) }}
    {{ form_end(form) }}
    {{ form_start(formPayment) }} {{ form_errors(formPayment) }}
    Forma de pago

    {{ form_row(formPayment.paymentDescription) }}
    {{ form_row(formPayment.typePayment) }}
    {{ form_row(formPayment.daysPayment) }}Modificar "Fecha de pago" en "Detalle factura"
    Datos bancarios del proveedor

    {{ form_row(formPayment.bankAccountDescriptionDealer) }}
    {{ form_row(formPayment.bankAccountNumberDealer) }}
    Datos bancarios de la empresa

    {{ form_row(formPayment.bankAccountDescriptionCompany) }}
    {{ form_row(formPayment.bankAccountNumberCompany) }}
    {{ form_end(formPayment) }}
    {% include '@Core/Invoice/_invoice_documents.html.twig' %}
    {% include '@Core/Invoice/_invoice_search_receptions.html.twig' %} {% include '@Core/Invoice/_invoice_dialog_articles_into_reception.html.twig' %}
    {% endblock%} {% block script%} {% endblock %}