{% load i18n %} {% load static %} {% load basefilters %} {% load horillafilters %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% if allowances %}
{% trans "Allowance" %}
{% trans "Is Taxable" %}
{% trans "Is Condition Based" %}
{% trans "Is Fixed" %}
{% trans "Amount" %}
{% trans "Based On" %}
{% if perms.payroll.change_allowance or perms.payroll.delete_allowance %}
{% trans "Actions" %}
{% endif %}
{% for allowance in allowances %}
{{allowance.title}}
{{allowance.is_taxable|yesno|capfirst}}
{{allowance.is_condition_based|yesno|capfirst}}
{{allowance.is_fixed|yesno|capfirst}}
{% if allowance.amount %}{{allowance.amount}}{% endif %}
{% if allowance.get_based_on_display%} {{allowance.get_based_on_display}} {% endif %}
{% if perms.payroll.change_allowance or perms.payroll.delete_allowance %} {% endif %}
{% endfor %}
{% else %}
{% if active_contracts %} {% if basic_pay <= 0 %}
{% trans "Basic pay not added . Please update in the active contract." %}
{% else %}
{% trans "This employee is not eligible for any allowances." %}
{% endif %} {% else %}
{% trans "This employee doesn't have an active contract. Please check the employee's contract" %}
{% endif %}
{% endif %}
{% if deductions %}
{% trans "Deduction" %}
{% trans "Is Pretax" %}
{% trans "Is Condition Based" %}
{% trans "Condition" %}
{% trans "Is Fixed" %}
{% trans "Amount" %}
{% trans "Based On" %}
{% if perms.payroll.change_deduction or perms.payroll.delete_deduction %}
{% trans "Actions" %}
{% endif %}
{% for deduction in deductions %}
{{deduction.title}}
{{deduction.is_pretax|yesno|capfirst}}
{{deduction.is_condition_based|yesno|capfirst}}
{% if deduction.field %} {{deduction.get_field_display}} {{deduction.get_condition_display}} {{deduction.value}} {% endif %}
{{deduction.is_fixed|yesno|capfirst}}
{% if deduction.amount %} {{deduction.amount}} {% endif %}
{% if deduction.based_on %} {{deduction.get_based_on_display}} {% endif%}
{% if perms.payroll.change_deduction or perms.payroll.delete_deduction %} {% endif %}
{% endfor %}
{% else %}
{% if active_contracts %}
{% trans "This employee is not eligible for any deductions." %}
{% else %}
{% trans "This employee doesn't have an active contract. Please check the employee's contract" %}
{% endif %}
{% endif %}