{% extends "base.html" %} {% block content %}

Gratuity Calculation

{% for row in results %} {% else %} {% endfor %}
# Employee DOJ Proposed LWD Exit Status Service Last Salary Components Eligible Formula Gratuity
{{ loop.index }} {{ row.employee.full_name }} {{ row.doj.strftime('%d-%m-%Y') if row.doj else '' }} {{ row.exit_date.strftime('%d-%m-%Y') if row.exit_date else '' }} {{ row.exit_request.status }} {{ row.eligible_service_years }} ({{ row.service_years }}y {{ row.remaining_months }}m) ₹ {{ '%.2f'|format(row.last_salary or 0) }} {{ row.component_breakup or '-' }} {% if row.eligible %} Yes {% else %} No {% endif %} {% if row.formula_error %} Error: {{ row.formula_error }} {% else %} {{ row.formula_used }} {% endif %} ₹ {{ '%.2f'|format(row.gratuity or 0) }}
No exit records found
{% endblock %}