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

Batch #{{ batch.id }}

Policy: {{ policy.name if policy else batch.policy_id }} · Period: {{ batch.period_key }}
Back
{{ batch.status }} Total: ₹{{ "%.2f"|format(total_amt) }}
{% if batch.status == 'draft' %}
{% endif %} {% if batch.status == 'approved' %}
{% endif %}
Lines
{% for l in lines %} {% else %} {% endfor %}
Employee Metric Achieved Target Amount Method
{{ l.employee.full_name if l.employee else l.employee_id }}
{{ l.employee.employee_code if l.employee else "" }}
{{ l.calc_breakup_json.get('method') if l.calc_breakup_json else "-" }} {{ "%.2f"|format(l.achieved_value or 0) }} {{ "%.2f"|format(l.target_value or 0) }} ₹{{ "%.2f"|format(l.calculated_amount or 0) }} {{ l.calc_breakup_json.get('method','-') if l.calc_breakup_json else "-" }}
No lines found.
{% endblock %}