{% extends "base.html" %} {% block title %}Rework Approval Requests{% endblock %} {% block header %}Rework Approval Requests{% endblock %} {% block content %} {% set pending_count = pagination.total if pagination is defined and pagination.total is defined else pagination.items|length %} {% set critical_count = namespace(value=0) %} {% set high_count = namespace(value=0) %} {% for t in pagination.items %} {% if t.priority == 'Critical' %} {% set critical_count.value = critical_count.value + 1 %} {% endif %} {% if t.priority == 'High' %} {% set high_count.value = high_count.value + 1 %} {% endif %} {% endfor %}
Ticketing Approvals

Rework Approval Requests

Pending Approval: {{ pending_count }} {% if critical_count.value > 0 %} Critical: {{ critical_count.value }} {% endif %} {% if high_count.value > 0 %} High Priority: {{ high_count.value }} {% endif %}
Operations Head Review

Approval Queue

Tickets requiring approval after repeated reassignment
Review tickets that have reached the rework reassignment threshold and need Operations Head approval.
Approval Management

Pending Rework Approvals

Search, review, and approve additional rework assignment requests.
Approval Pending
Pending Requests
{{ pending_count }}
Awaiting your review
Critical Priority
{{ critical_count.value }}
Critical tickets on this page
High Priority
{{ high_count.value }}
High priority tickets on this page
Approval Queue
Tickets Requiring Review
These tickets require approval before the next rework assignment can be created.
{{ pending_count }} Request(s)
{% if pagination.items %}
{% for t in pagination.items %} {% endfor %}
Ticket Jobcard Quote Line Item Priority Raised By Updated Action
{{ t.ticket_no }}
{{ t.feedback_type or 'Rework' }}
{% if t.jobcard %}
{{ t.jobcard.jobcard_code }}
{% else %} - {% endif %}
{% if t.jobcard and t.jobcard.quote %}
{{ t.jobcard.quote.quote_code }}
{% else %} - {% endif %}
{{ t.jobcard_service.service_name if t.jobcard_service else '-' }}
{% if t.jobcard_service and t.jobcard_service.quote_item %}
{{ t.jobcard_service.quote_item.item_name }}
{% endif %}
{% if t.priority == "Critical" %} Critical {% elif t.priority == "High" %} High {% elif t.priority == "Low" %} Low {% else %} {{ t.priority or 'Medium' }} {% endif %} {% if t.raised_by %}
{{ t.raised_by.name }}
{% else %} - {% endif %}
{% if t.updated_at %}
{{ t.updated_at.strftime('%d-%m-%Y') }}
{{ t.updated_at.strftime('%I:%M %p') }}
{% else %} - {% endif %}
Review
{% else %}
No approval requests pending
There are currently no rework tickets waiting for Operations Head approval.
{% endif %} {% if pagination.pages > 1 %} {% endif %}
{% endblock %}