{% extends 'Common/baseAdminPannel.html.twig' %} {% if form is defined %} {% form_theme form 'backend/form/serviceServicePayment.twig' %} {% endif %} {% block title %} {{ 'Tranferencia de pagos al crédito con el proveedor' }} {% endblock %} {% block body %}
{{ 'Monto transferible' }}: {{ service.getTotalTransferableToProviderCreditAccount|price(service.tariff.currency) }}
{#Help#}
{{ form_start(form, {'attr':{'data-remote':'true', 'data-method':'POST', 'data-url':form.vars.action }}) }}
{% if form.service is defined %} {{ form_row(form.service) }} {% endif %} {% if form.mxnAmount is defined %}
{{ form_row(form.amount) }}
{{ form_row(form.currencyChange) }}
{{ form_row(form.mxnAmount) }}
{% else %}
{{ form_row(form.amount) }}
{% endif %}
{% if form.payOtherService is defined %}

{{ form_row(form.payOtherService) }}
{% endif %} {% if form.reservation is defined %}
{{ form_row(form.reservation) }}
{% endif %}
{% if form.serviceToPay is defined %}
{{ form_row(form.serviceToPay) }}
{% endif %}
{{ form_row(form.comment) }}
{{ include('backend/reservations/providerCreditAccountMovement/providerAccounts.html.twig') }}
{% if service.providerCreditAccountMovements|length > 0 %}
{{ 'Transferencias previas de este servicio' }}
{% set total = 0 %} {% for movement in service.providerCreditAccountMovements %} {% set total = total + movement.amount %} {% endfor %}
{{ 'date'|trans|capitalize }} {{ 'Created by'|trans }} {{ 'Cantidad' }}
{{ movement.createdDate|date('d-m-Y H:i') }} {{ movement.createdBy.fullName }} {{ movement.amount|price(service.tariff.currency) }}
{{ 'Total' }} {{ total|price(service.tariff.currency) }}
{% endif %} {{ form_end(form) }} {% endblock %}