{% extends "base.html" %} {% block title %}PM Masters{% endblock %} {% block header %}PM Masters{% endblock %} {% block content %}
{% set total_services = service_rows|length if service_rows else 0 %} {% set total_profiles = profile_rows|length if profile_rows else 0 %} {% set active_services = service_rows|selectattr('is_active')|list|length if service_rows else 0 %} {% set active_profiles = profile_rows|selectattr('is_active')|list|length if profile_rows else 0 %}
Project Management Configuration

PM Productivity & KPI Masters

Maintain service productivity standards, KPI weights, targets, ticket deductions and TL sharing rules.
{% for icon,label,value,note in [ ('bi-diagram-3','Service Standards',total_services,active_services ~ ' active'), ('bi-sliders2','KPI Profiles',total_profiles,active_profiles ~ ' active'), ('bi-speedometer2','Default TL Split','40 / 60','Individual / Team'), ('bi-shield-check','Weight Control','100%','Validated before save') ] %}
{{ label }}
{{ value }}
{{ note }}
{% endfor %}
{{ 'Edit Standard' if service_edit else 'Create Standard' }}
Service Productivity Standard
Equivalent projects are calculated as quantity divided by quantity per project.
The selected master service is stored with this standard, preventing spelling and spacing mismatches.
{% if service_edit and not service_edit.service_id and service_selected_id %}
Legacy standard matched to the Lead Service Master. Save once to persist the mapping.
{% elif service_edit and not service_selected_id %}
This legacy service could not be matched automatically. Select the correct service and save.
{% endif %}
{% if service_edit %}Cancel Edit{% endif %}
Configured Services
Productivity Standards
{{ total_services }} services
{% for r in service_rows %} {% else %}{% endfor %}
ServiceQuantity RuleDaily TargetEffortStatusAction
{{ r.service.name if r.service else r.service_name }}
{{ r.quantity_unit or 'Project' }}{% if r.service %} · Lead Service #{{ r.service_id }}{% else %} · Legacy mapping pending{% endif %}
1 project = {{ r.quantity_per_project }}
{{ r.projects_per_day }}
projects/day
{{ r.minutes_per_project }} min
per project
{% if r.is_active %}Active{% else %}Inactive{% endif %}Edit
No service standards configured.
{{ 'Edit Profile' if profile_edit else 'Create Profile' }}
KPI Profile Configuration
Profile Identity
Who should this profile apply to?
{% set fs=[('projects_executed_weight','Projects','bi-kanban',40),('revenue_generated_weight','Revenue','bi-currency-rupee',20),('profit_margin_weight','Margin','bi-pie-chart',20),('on_time_delivery_weight','On-time','bi-clock-history',15),('rework_control_weight','Rework','bi-arrow-repeat',5)] %}
KPI Weightage
Total must equal 100%
{% for n,l,i,d in fs %}
{{ l }}
%
{% endfor %}
Total KPI Weight
Ready to save
100%
Performance Targets
Revenue, margin and quality thresholds
Ticket Deductions
Penalty applied after weighted KPI
%
%
Team Lead Sharing
Blend TL individual and consolidated team performance
%
%
{% if profile_edit %}Cancel Edit{% endif %}
Configured Profiles
Profile Library
{% for r in profile_rows %}
{{ r.profile_name }}
{{ r.user.name if r.user else r.designation.name if r.designation else 'Default profile' }}
Projects
{{ r.projects_executed_weight }}%
Revenue
{{ r.revenue_generated_weight }}%
Margin
{{ r.profit_margin_weight }}%
On-time / Rework
{{ r.on_time_delivery_weight }}% / {{ r.rework_control_weight }}%

TL split{{ r.tl_individual_weight }} / {{ r.tl_team_weight }}
{% else %}
No KPI profiles configured.
{% endfor %}
{% endblock %}