{% if is_granted("RESERV_SERVICE_CHANGE_CAN_BE_INVOICED") %}
{% if entity.service.canBeInvoiced %}
{% set confirmMessage = "Se desactivará la facturación para todos los pagos del servicio.
¿Desea continuar?" %}
{% else %}
{% set confirmMessage = "Se activará la facturación para todos los pagos del servicio.
¿Desea continuar?" %}
{% endif %}
{% if entity.service.canBeInvoiced %}
{% else %}
{% endif %}
{% endif %}
{% if entity.status not in ["pending", "rejected"] and is_granted("RESERV_INVOICE_REQUEST_TO_PROVIDER") and entity.service.canBeInvoiced %}
{% endif %}
{% if is_granted("RESERV_PAYMENT_INVOICE") and entity.service.canBeInvoiced %}
{% endif %}