{% extends "base.html.twig" %} {% trans_default_domain 'core' %} {% set table_columns = 8 %} {% if not table_selectable is defined %} {# This variable MUST be explicitly set to false to hide checkboxes #} {# If you set this to false and you have a second listing that display them #} {# set explicitly to true in the second listing. #} {% set table_selectable = true %} {% set table_columns = table_columns + 1 %} {% endif %} {% block stylesheets %} {# {{ parent() }}#} {% endblock %} {% block actionheader %} {% endblock %} {% block searchform_container %}{% endblock %} {% block body %}
{% block invoice_actions %}{% endblock %} {% block invoice_label %}{% endblock %}
{{ form_start(form, {'attr': {'class': 'form-stacked', 'id':'ncredito' } }) }}
{#

{% 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.customer_identification) }}
{{ form_widget(form.customer_identification) }}
{{ form_errors(form.customer_identification) }}
{% if formcustomer is defined %} {{ form_label(form.customer_name) }}
{{ form_widget(form.customer_name) }}
{{ form_errors(form.customer_name) }} {% else %} {{ form_row(form.customer_name) }} {% endif %}
{{ form_label(form.customer_email) }}
{{ form_widget(form.customer_email) }}
{{ form_errors(form.customer_email) }}
{{ form_row(form.invoicing_address) }}

Comprobante de Venta

{{ form_row(form.serieDocSustento) }}
{{ form_row(form.numeroDocSustento) }}
{{ form_row(form.fecDocSustento) }}
{{ form_row(form.motivo) }}
{% block additional_form_data %}{% endblock %}

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

{% for item in form.items %} {{ include('CreditoItem/edit.html.twig', { 'form': item, 'entity': item.vars.value, 'currency': currency }) }} {% endfor %} {# TODO: Action buttons: add/remove items, taxes, sort... #}
{% 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) }}
{#
{{ 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/customer.form.html.twig" %} {% include "Invoice/modalsearchcustomer.html.twig" %} {% include "Invoice/modalsearchproduct.html.twig" %} {% endblock %} {% block javascripts %} {% endblock %}