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

Bonus Preview

Policy: {{ policy.name }} | Type: {{ policy.bonus_type|title }} | FY: {{ run.fy_label }} | Payout Month: {{ run.payout_month }} | Status: {{ run.status|title }}

{% if run.status == 'draft' %} Regenerate Preview Download Preview Excel {% elif run.status == 'frozen' %} Download Frozen Excel {% elif run.status == 'posted' %} Download Frozen Excel {% endif %}
{% for entry in entries %} {% else %} {% endfor %} {% if entries %} {% endif %}
# Employee Name DOJ Worked Days Tenure Slab Base Amount Override Amount Final Amount Action
{{ loop.index }} {{ entry.employee_name }} {% if entry.doj %} {{ entry.doj.strftime('%d-%m-%Y') }} {% endif %} {{ entry.worked_days }} {{ entry.tenure_years }} years {{ entry.slab_label or '-' }} ₹ {{ '%.2f'|format(entry.base_amount or 0) }} ₹ {{ '%.2f'|format(entry.final_amount or 0) }} {% if run.status == 'draft' %} {% else %} Locked {% endif %}
No bonus entries found. Generate preview first.
Total ₹ {{ '%.2f'|format(entries|sum(attribute='final_amount')) }}
{% endblock %}