{% extends "base.html" %} {% block title %}Leave Register {{ year }} · WageWise Neo{% endblock %} {% block content %}

CL/SL Used and the yearly totals below are calculated directly from Attendance — marking CL/SL on the Attendance page updates this automatically, and using "+ Add Leave" here also marks those days on the Attendance grid. Both stay in sync.

{% for emp in employees %} {% set bal = balances.get(emp.id, {}) %} {% set cl_ent = bal.cl_entitled or 12 %} {% set cl_used = bal.cl_used or 0 %} {% set sl_ent = bal.sl_entitled or 12 %} {% set sl_used = bal.sl_used or 0 %} {% endfor %}
Employee CL Entitled CL Used CL Balance SL Entitled SL Used SL Balance Present
(Year)
Absent
(Year)
Half Day
(Year)
Late
(Year)
{{ emp.full_name }}
{{ emp.designation or '' }}
{{ cl_ent }} {{ cl_used }} {{ (cl_ent - cl_used) | int }} {{ sl_ent }} {{ sl_used }} {{ (sl_ent - sl_used) | int }} {{ bal.present_days or 0 }} {{ bal.absent_days or 0 }} {{ bal.half_days or 0 }} {{ bal.late_days or 0 }}
{% endblock %}