{% extends "base.html.twig" %} {% trans_default_domain 'core' %} {% block actionheader %} {% endblock %} {% block searchform_container %}{% endblock %} {% block body %}
{% block invoice_actions %}{% endblock %} {% block invoice_label %}{% endblock %}
{{ form_start(form, {'attr': {'class': 'form-stacked' } }) }}
Listado Nuevo {# {% if not entity.id or entity.isDraft() %} {% endif %} {% if entity.isOpen() %} {% endif %} {% if entity.id %} {% endif %} #} {#{% if entity.id %} {% if entity.statusString != 'anulado' %} Pdf Mail Anular {% trans %}form.submit_delete{% endtrans %} {% endif %} {% endif %} #}
{#

{% trans %}abstract_invoice.form.customer{% endtrans %}

#}
{{ form_row(form.series) }}
{{ form_label(form.number) }} {{ form_widget(form.number, {'value' : "%09d"|format(form.number.vars.value) }) }}
{{ form_row(form.issue_date) }}
{{ form_label(form.provider_identification) }}
{{ form_widget(form.provider_identification) }}
{{ form_errors(form.provider_identification) }}
{% if formprovider is defined %}
{{ form_label(form.provider_name) }}
{{ form_widget(form.provider_name) }}
{{ form_errors(form.provider_name) }} {% else %} {{ form_row(form.provider_name) }} {% endif %}
{#
{{ form_row(form.contact_person) }}
#}
{{ form_label(form.provider_email) }}
{{ form_widget(form.provider_email) }}
{{ form_errors(form.provider_email) }}
{{ form_row(form.provider_address) }}
{#
{{ form_row(form.shipping_address) }}
#}
{% block additional_form_data %}{% endblock %}

Detalle

{# CAMPO CODIGO DEL PRODUCTO {% if bundle_exists('SiwappProductBundle') %} {% endif %} #} {% for item in form.items %} {{ include('Item/edit.html.twig', { 'form': item, 'entity': item.vars.value, 'currency': currency }) }} {% endfor %} {# TODO: Action buttons: add/remove items, taxes, sort... #}
Cod.{% trans %}item.form.description{% endtrans %} {% trans %}item.form.quantity{% endtrans %} {% trans %}item.form.unitary_cost{% endtrans %} {% trans %}item.form.discount{% endtrans %} {% trans %}item.form.taxes{% endtrans %} {% trans %}item.form.total{% endtrans %}
{% trans %}abstract_invoice.form.subtotal{% endtrans %} {{ entity.baseAmount|localizedcurrency(currency, app.request.locale) }}
{% trans %}abstract_invoice.form.total_taxes{% endtrans %} {{ entity.taxAmount|localizedcurrency(currency, app.request.locale) }}
{% trans with {'%currency%': currency} %}abstract_invoice.form.total{% endtrans %} {{ entity.grossAmount|localizedcurrency(currency, app.request.locale) }}

Reembolsos

{% for item in form.reembolsos %} {{ include('Item/editreembolso.html.twig', { 'form': item, 'entity': item.vars.value, 'currency': currency }) }} {% endfor %} {# TODO: Action buttons: add/remove items, taxes, sort... #}

Forma de Pago

{% for item in form.pagos %} {{ include('Item/editpago.html.twig', { 'form': item, 'entity': item.vars.value, 'currency': currency }) }} {% endfor %} {# TODO: Action buttons: add/remove items, taxes, sort... #}
Forma Pago Valor Tiempo Plazo
Total (USD) {{ entity.grossAmount|localizedcurrency(currency, app.request.locale) }}

{#
{{ form_row(form.terms) }}
#}
{{ form_row(form.notes) }}
{% if entity.statusString != 'anulado' and entity.statusString != 'autorizado' %}   {% endif %}
{{ form_rest(form) }}
{{ form_end(form) }}
{% include "Core/provider.form.html.twig" %} {% include "Core/provreembolso.form.html.twig" %} {% include "LiquidacionReembolso/reembolso.form.html.twig" %} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}