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

Salary Slip Preview – {{ month }}/{{ year }}


Employee: {{ emp.full_name }}

Employee Code: {{ emp.employee_code }}

Earnings
{% set total_earnings = 0 %} {% for comp in components.earnings %} {% set total_earnings = total_earnings + comp.amount %} {% endfor %}
ComponentAmount (₹)
{{ comp.name }} {{ "%.2f"|format(comp.amount) }}
Total{{ "%.2f"|format(total_earnings) }}
Total{{ "%.2f"|format(earnings) }}
Deductions
{% for name, amt in components.deductions.items() %} {% endfor %}
ComponentAmount (₹)
{{ name }}{{ "%.2f"|format(amt) }}
Total{{ "%.2f"|format(deductions) }}
Summary
CTC₹ {{ "%.2f"|format(ctc) }}
Gross Pay₹ {{ "%.2f"|format(gross) }}
Net Pay₹ {{ "%.2f"|format(net) }}
Paid Days{{ paid_days }}
Attendance Summary
Present{{ present }}
Half Day{{ half }}
Leave{{ leave }}
Holiday{{ holiday }}
Weekends{{ weekends }}
LWP{{ lwp }}
{% endblock %}