{% extends "base.html" %} {% block title %}Operations Workload Analytics{% endblock %} {% block header %}Operations Workload Analytics{% endblock %} {% block content %}
Operations Intelligence

Workload Analytics

See exactly where every workload hour comes from, down to the jobcard, assignment, workload master and formula.
{{ filters.start_date.strftime('%d %b %Y') }} - {{ filters.end_date.strftime('%d %b %Y') }}{{ dashboard.totals.entries }} workload entries{{ dashboard.totals.assignments }} assignments
{% set t=dashboard.totals %}
{% for label,value,note in [('Total Hours',t.total_hours,t.assignments ~ ' assignments'),('Completed',t.completed_hours,t.completion_pct ~ '% complete'),('Active',t.active_hours,'Open workload'),('Overdue',t.overdue_hours,t.overdue_assignments ~ ' assignments'),('Production',t.production_hours,'Production effort'),('QC',t.qc_hours,'QC effort'),('Internal',t.internal_hours,'Employee effort'),('Vendor',t.vendor_hours,'External effort')] %}
{{ label }}
{{ value }}{% if 'Hours' not in label and label not in ['Completed','Active','Overdue','Production','QC','Internal','Vendor'] %}{% endif %}
{{ note }}
{% endfor %}
Workload formula: each captured entry uses (Quantity / Base Quantity) x Standard Minutes. The values shown below are snapshots saved with the jobcard workload entry, so the calculation remains auditable even if the workload master is changed later.
Internal Team

Employee Workload Scorecards

Open a card to see the exact workload calculation.
{% for row in dashboard.employees %}
{{ (row.label or 'U')[:2]|upper }}
{{ row.label }}
{{ row.email or '' }}
{{ row.jobcard_count }} jobcards {{ row.assignment_count }} assignments
Total workload
{{ row.hours }} h
Completed
{{ row.completed_hours }} h
Active
{{ row.active_hours }} h
Overdue
{{ row.overdue_hours }} h
Completion
{{ row.completion_pct }}%
{% for jc in row.jobcard_details %}
{% if jc.id %}{{ jc.code }}{% else %}{{ jc.code }}{% endif %}
{{ jc.client }} · {{ jc.status or '—' }}
{{ jc.total_hours }} h{{ jc.completed_hours }} h completed{% if jc.active_hours > 0 %}{{ jc.active_hours }} h active{% endif %}
{% for d in jc.details %}{% endfor %}
AssignmentWorkload master matchQuantity inputsCalculationEffortStatus
#{{ d.assignment_id }}
{{ d.assignment_type }}
{{ d.service }}
{{ d.application }} · {{ d.sow }} · {{ d.complexity }}{% if d.file_extension and d.file_extension != '-' %} · {{ d.file_extension }}{% endif %}
Qty {{ d.quantity }} {{ d.unit_type }}
Base {{ d.base_quantity }} · Standard {{ d.standard_minutes }} min
{{ d.calculation_rule }}
{{ d.calculated_hours }} h{% if d.is_completed %}Completed{% else %}{{ d.assignment_status }}{% endif %}{% if d.is_overdue %} Overdue{% endif %}
{{ d.deadline.strftime('%d %b %Y %H:%M') if d.deadline else 'No deadline' }}
{% else %}
No workload details found.
{% endfor %}
{% else %}
No internal workload found for this period.
{% endfor %} {% if dashboard.vendors %}
External Resources
Vendor Workload
{% for v in dashboard.vendors %}{% endfor %}
VendorHoursCompletedActiveOverdueAssignments
{{ v.label }}
{{ v.email or '' }}
{{ v.hours }} h{{ v.completed_hours }} h{{ v.active_hours }} h{{ v.overdue_hours }} h{{ v.assignment_count }}
{% endif %}
Jobcard Summary
Largest Workloads
{% for jc in dashboard.jobcards[:30] %}{% else %}{% endfor %}
JobcardClientTotalCompletedActiveOverdue
{% if jc.id %}{{ jc.label }}{% else %}{{ jc.label }}{% endif %}{{ jc.client }}{{ jc.hours }} h{{ jc.completed_hours }} h{{ jc.active_hours }} h{{ jc.overdue_hours }} h
No workload found.
{% endblock %}