{% extends "base.html" %}
{% block content %}
Salary Slip Preview – {{ month }}/{{ year }}
Employee: {{ emp.full_name }}
Employee Code: {{ emp.employee_code }}
Earnings
| Component | Amount (₹) |
{% set total_earnings = 0 %}
{% for comp in components.earnings %}
| {{ comp.name }} |
{{ "%.2f"|format(comp.amount) }} |
{% set total_earnings = total_earnings + comp.amount %}
{% endfor %}
| Total | {{ "%.2f"|format(total_earnings) }} |
| Total | {{ "%.2f"|format(earnings) }} |
Deductions
| Component | Amount (₹) |
{% for name, amt in components.deductions.items() %}
| {{ name }} | {{ "%.2f"|format(amt) }} |
{% endfor %}
| 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 %}