{% load i18n %}
{% if instance.update_compensation %}
{% if instance.is_fixed %}
{{instance.amount}}{{currency}} Deduct From {{instance.get_update_compensation_display}}
{% else %}
{{instance.rate}}% {% trans "of" %} {{instance.get_update_compensation_display}}
{% endif %}
{% else %}
{% if instance.is_fixed %}
{{instance.amount}}{{currency}}
{% else %}
{% trans "Employer Rate :" %} {{instance.employer_rate}}% {% trans "of" %} {{instance.get_based_on_display}}
{% trans "Employee Rate :" %} {{instance.rate}}% {% trans "of" %} {{instance.get_based_on_display}}
{% endif %}
{% endif %}