{% extends 'Common/baseAdminPannel.html.twig' %} {% block title %} Registrar pago a proveedor {% endblock %} {% block body %} {% set provider = entity.service.provider %}
Faltan: {{ entity.service.remainingAmount|price(entity.service.tariff.currency) }} por registrar
Monto disponible: {{ entity.service.availableAmount|price }}
Máximo en pagos directos: {{ entity.service.tariff.getMaxDirectPaymentAmount|price(entity.service.tariff.currency) }}
{% if (entity.service.tariff.currency != 'MXN') %} Pagos del cliente hoy: {% for paymentDetail in entity.service.tariff.paymentsDetails %} {% if paymentDetail.forForeignTariff and paymentDetail.clientPayment.status in ['approved', 'incoiced'] and paymentDetail.clientPayment.isOfToday %} {{ ' ('~ paymentDetail.foreignAmount|price(entity.service.tariff.currency)~' a '~ paymentDetail.currencyChange|price~')' }} {% endif %} {% endfor %} {% endif %}
{% if provider.creditAccounts|length > 0 %}
{{ include('backend/reservations/providerCreditAccountMovement/providerAccounts.html.twig') }}
{% endif %}
{{ form_start(form, {'attr':{'data-remote':'true', 'data-method':'POST', 'data-url':form.vars.action }}) }}
{% if form.paymentsDetails is defined %}
{{ form_row(form.paymentsDetails) }}
{% endif %}
{% if form.totalPayment is defined %}
{{ form_row(form.totalPayment) }}
{% endif %} {% if form.cardCommission is defined %}
{{ form_row(form.cardCommission) }}
{% endif %}
{{ form_row(form.date)}}
{% if form.currencyChange is defined %}
{{ form_row(form.currencyChange) }}
{% endif %} {% if form.foreignAmount is defined %}
{{ form_row(form.foreignAmount) }}
{% endif %}
{{ form_row(form.amount)}}
{% if form.paymentType is defined %}
{{ form_row(form.paymentType) }}
{% endif %} {% if form.providerBankAccount is defined %}
{{ form_row(form.providerBankAccount) }}
{% endif %} {% if form.paymentForm is defined %}
{{ form_row(form.paymentForm) }}
{% endif %} {% if form.reservation is defined %}
{{ form_row(form.reservation) }}
{% endif %} {% if form.providerCreditAccount is defined %}
{{ form_row(form.providerCreditAccount) }}
{% endif %} {% if form.receipt is defined %}
{{ form_row(form.receipt) }}
{% endif %} {% if form.service is defined %}
{{ form_row(form.service) }}
{% endif %}
{% if form.canceledService is defined %}
{{ form_row(form.canceledService) }}
{% endif %} {% if form.canceledServicePayment is defined %}
{{ form_row(form.canceledServicePayment) }}
{% endif %}
{{ form_row(form.comment) }}
{% if form.voucher is defined %}
{{ form_row(form.voucher) }}
{% endif %}
{{ form_end(form) }} {% endblock %}