{% if not slip_template or slip_template.show_employee_section %}
| Employee Details |
{% for row in employee_fields|batch(2, {'label':'', 'value':''}) %}
{% for field in row %}
| {{ field.label }} |
{{ field.value }} |
{% endfor %}
{% endfor %}
{% endif %}
| Earnings |
{% if earnings %}
{% for item in earnings %}
| {{ item.name }} |
₹{{ '%.2f'|format(item.amount or 0) }} |
{% endfor %}
{% else %}
| No earnings |
{% endif %}
| Total |
₹{{ '%.2f'|format(payroll.gross_pay or 0) }} |
|
| Deductions |
{% if deductions %}
{% for item in deductions %}
| {{ item.name }} |
₹{{ '%.2f'|format(item.amount or 0) }} |
{% endfor %}
{% else %}
| No deductions |
{% endif %}
| Total |
₹{{ '%.2f'|format(payroll.deductions or 0) }} |
|
| Pay Summary |
| Net Pay |
₹{{ '%.2f'|format(payroll.net_pay or 0) }} |
| CTC |
₹{{ '%.2f'|format(payroll.ctc or 0) }} |
Freeze Date |
{{ payroll.freeze_date.strftime('%Y-%m-%d') if payroll.freeze_date else '' }} |
{% if slip_template and slip_template.show_ctc_section and ctc_components %}
| CTC Components |
{% for item in ctc_components %}
| {{ item.name }} |
₹{{ '%.2f'|format(item.amount or 0) }} |
{% endfor %}
{% endif %}
{% if not slip_template or slip_template.show_attendance_section %}
| Attendance Summary |
{% for row in attendance_fields|batch(2, {'label':'', 'value':''}) %}
{% for field in row %}
| {{ field.label }} |
{{ field.value }} |
{% endfor %}
{% endfor %}
{% endif %}
{% if not slip_template or slip_template.show_footer %}
{% endif %}