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

Assign Salary Structure

{# ---------------- Filter + Employee picker (GET) ---------------- #}
Clear
{# ---------------- Gross + auto-calculation ---------------- #} {% if not is_stipend_employee %}
Enter gross and click Calculate to auto-fill components using formulas.
{% endif %} {% if selected_employee %}
{{ csrf_token() if csrf_token is defined }} {# ---------- Payroll Remarks ---------- #}
Payroll Remarks Internal notes about this employee's salary structure (visible only to HR/Admin).
{% if is_stipend_employee %}
Stipend
This employee is marked as Stipend. Only the monthly stipend amount is applicable. Earnings, deductions and CTC components are not used.
{% else %} {# ---------- Totals Summary ---------- #}
Salary Summary
Total Earnings
0.00
Total Deductions
0.00
Net Salary
0.00
Total CTC
0.00
Earnings Total: 0.00
{% for head in earning_heads %}
{% endfor %}
Deductions Total: 0.00
{% for head in deduction_heads %}
{% endfor %}
CTC Components Total: 0.00
{% for head in ctc_heads %}
{% endfor %}
{% endif %}
{% else %}
Please select an employee to assign salary structure.
{% endif %}
{% endblock %}