{% block icon %}{% endblock %}
{% block service_tools %} {% if refundView is defined %} {% if workflow_can(service.quotation, 'accept') or workflow_has_marked_place(service.quotation, 'accepted') or workflow_has_marked_place(service.quotation, 'payed') %} {% endif %} {% else %} {% if is_granted("RESERV_SERVICE_CLONE") and is_granted("MODIFY", service) %} {% endif %} {% if is_granted("MODIFY", service) and is_granted("RESERV_SERVICE_EDIT") %} {% endif %} {% if service.packageService is null %} {% if is_granted("APPROVE", service) %} {% endif %} {% if is_granted("DENY", service) %} {% endif %} {% if service.tariff == null and is_granted("RESERV_TARIFF_CREATE") and is_granted('CREATE_TARIFF', service) %} {% elseif is_granted("RESERV_TARIFF_EDIT") and is_granted("MODIFY", service.tariff) %} {% elseif service.tariff %} {% endif %} {% if is_granted("SHOW_PAYMENT", service) %} {% endif %} {% if is_granted("RESERV_PROVIDER_CREDIT_ACCOUNT_MOVEMENT_NEW") and service.canSendServicePaymentsToProviderCredit %} {% endif %} {% if service.tariff %} {% if is_granted("RESERV_SERVICE_DOCUMENTS") and is_granted("DOCUMENTED", service) %} {% endif %} {% endif %} {% if is_granted("REFUND", service)%} {% endif %} {% endif %} {% if is_granted("RESERV_SERVICE_EDIT") and service.canBeCanceled %} {% if service.canceled %} {% else %} {% endif %} {% endif %} {% if is_granted("RESERV_SERVICE_DELETE") and is_granted("DELETE", service)%} {% endif %} {% endif %} {% endblock %}
{% if not service.packageService %} {% if service.tariff is not null %} {% if service.tariff.paymentDate|default(null) is null %}
* Sin fecha de pago al proveedor
{% elseif date(service.tariff.paymentDate) < date()|date("d-m-Y") %}
* Fecha de pago al proveedor vencida
{% endif %} {% if service.tariff.status|default(null)!="ACC" and service.tariff.status|default(null)!="APP"%}
* Tarifa no aceptada
{% endif %} {% if service.tariff.providerConfirmation|default(null) is null %}
* Tarifa sin número de confirmación del proveedor
{% endif %} {% else %}
* Sin tarifa asignada
{% endif %}
{{ "ID" }}: {{ service.id }}
{{ "provider" |trans |capitalize }}: {{ service.provider.commercialName }}
{{ "provider limit date" |trans |capitalize }}: {{ service.tariff.paymentDate|default(null)? service.tariff.paymentDate|date("d-m-Y H:i"):"Sin asignar" }}
{{ "provider bank accounts" |trans |capitalize }}: {% if service.provider.bankAccounts|length >0 %} {{ 'SI ('~service.provider.bankAccounts|length~')' }} {% else %} Sin cuentas{% endif %}
{{ "payed" |trans |capitalize }}: {% if service.payed %} {{ "yes" |trans |capitalize }} {% else %} {{ "no" |trans |capitalize }} {% endif %}
{{ "provider confirmation" |trans |capitalize }}: {{ service.tariff ? service.tariff.providerConfirmation|default("Sin confirmación") }} {% if service.tariff and service.quotation.status in service.quotation.getConfirmationStatuses and is_granted("RESERV_TARIFF_EDIT_CONFIRMATION") %} {% endif %}
{% endif %}
{% if service.tariff|default(null) %}
{{ "Provider payment" |trans |capitalize }}: {{ service.tariff?service.tariff.getPaymentToProvider|price(service.tariff.currency):"Sin tarifa asignada"}}
{{ "client.price" |trans |capitalize }}: {{ service.getClientTariffAmounts|amounts }}
{% if service.tariff.realUtility is not null %} {{ "Utilidad real"}}: {{ service.tariff.realUtility|price }} {% else %} {{ "Utility" |trans |capitalize }}: {{ service.tariff.clientTariff|default(null)?service.tariff.utility|price(service.tariff.currency):"Sin tarifa asignada"}} {% endif %}
{% else %}
{{ "client.price" |trans |capitalize }}: {% if service.tariff.clientTariff|default(null) %} {{ service.getClientTariffAmounts|amounts }} {% else %} {{ service.quotingPrice|price(service.quotingCurrency) }} {% endif %}
{% endif %} {% if service.generalDestination %}
{{ "generalDestination" |trans |capitalize }}: {{ service.generalDestination.name }}
{% endif %}
{% block service_info %} {% endblock %}
{{ "client observations" |trans |capitalize }}:
{{ (service.clientObservations ? service.clientObservations : "without observations"|trans |capitalize)|raw }}
{{ "internal observations" |trans |capitalize }}:
{{ (service.internalObservations ? service.internalObservations : "without observations" |trans |capitalize)|raw }}