{% extends "base.html" %} {% block title %}Operations KPI Master{% endblock %} {% block header %}Operations KPI Master{% endblock %} {% block content %} {% set selected_type = 'default' if edit_row and edit_row.is_default else ('user' if edit_row and edit_row.user_id else 'designation') %}
Operations Configuration

KPI Master

Assign KPI profiles user-wise, designation-wise, or use one default profile.
Back to KPI
{{ 'Edit' if edit_row else 'Create' }} KPI Profile
Profile Assignment
A user-wise profile overrides designation and default profiles.
This profile applies only when no active user-wise or designation-wise profile exists.
Employee KPI Weights — Total 100%
{% set fields=[('workload_achievement_weight','Workload Achievement',40),('on_time_completion_weight','On-time Completion',25),('capacity_utilisation_weight','Capacity Utilisation',20),('rework_control_weight','Rework Control',10),('qc_compliance_weight','QC Compliance',5)] %}
{% for field,label,default in fields %}
%
{% endfor %}
Manager KPI Weights — Total 100%
%
%
Configured Profiles
Priority: User → Designation → Default
{% for row in rows %}{% else %}{% endfor %}
ProfileApplied ToEmployee WeightsManager SplitStatusAction
{{ row.profile_name }}{% if row.is_default %}Default{% elif row.user_id %}User{% else %}Designation{% endif %}{% if row.user %}
{{ row.user.name }}
{{ row.user.email or '' }}
{% elif row.designation %}{{ row.designation.name }}{% else %}All unmatched users{% endif %}
W {{ row.workload_achievement_weight }}% · T {{ row.on_time_completion_weight }}% · C {{ row.capacity_utilisation_weight }}% · R {{ row.rework_control_weight }}% · Q {{ row.qc_compliance_weight }}%Individual {{ row.manager_individual_weight }}% · Team {{ row.manager_team_weight }}%{{ 'Active' if row.is_active else 'Inactive' }}Edit
No KPI profiles configured.
{% endblock %}