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

Assign Salary Structure

{# ---------------- Filter + Employee picker (GET) ---------------- #}
{# Employee (auto-submit on change) #}
{# 1. Institute (Emp Code Prefix) #}
{# 2. Location (Workplace) #}
{# 3. Department #}
{# 4. Designation #}
Clear
{# ---------------- Gross + auto-calculation ---------------- #}
Enter gross and click Calculate to auto-fill components using formulas.
{% if selected_employee %}
{{ csrf_token() if csrf_token is defined }} {# ---------- Payroll Remarks (for this employee's salary) ---------- #}
Payroll Remarks Internal notes about this employee's salary structure (visible only to HR/Admin).
Earnings
{% for head in earning_heads %}
{% endfor %}
Deductions
{% for head in deduction_heads %}
{% endfor %}
CTC Components
{% for head in ctc_heads %}
{% endfor %}
{% else %}
Please select an employee to assign salary structure.
{% endif %}
{% endblock %}