{{ 'Certificados por contrato' }}:
{% if certificates is defined and certificates|length > 0 %}
| {{ 'Present type'|trans }} |
{{ 'folio'|trans|capitalize }} |
{{ 'Count'|trans }} |
{{ 'tariff'|trans|capitalize }} |
{{ 'Expiration date'|trans }} |
{% for certificate in certificates %}
| {{ certificate.presentType.name }} |
{{ certificate.folio|default('Sin folio') }} |
{{ certificate.count }} |
{{ certificate.tariff|price('') }} |
{{ certificate.expirationDate ? certificate.expirationDate|date('d-m-Y') : '' }} |
{% endfor %}
{% else %}
No tiene certificados asignados por contrato
{% endif %}
{{ 'Certificados usados' }}:
{% set used = 0 %}
{% if client.getUsedCertificateServices|length > 0 %}
{% for service in client.getUsedCertificateServices %}
{% if service.quotation.reservation.id != entity.quotation.reservation.id %}
{% set used = used + 1 %}
{{ service.getCertificateLabel }} -
Reservasión: {{ service.quotation.reservation.folio }} ({{ service.quotation.reservation.requestDate|date('d-m-Y') }})
{% endif %}
{% endfor %}
{% if used == 0 %}
No ha usado certificados
{% endif %}
{% else %}
No ha usado certificados
{% endif %}