{% extends "base.html" %} {% block title %}Rework Tickets{% endblock %} {% block header %}Rework Tickets{% endblock %} {% block content %} {% set total_count = pagination.total if pagination and pagination.total is defined else 0 %} {% set open_count = namespace(value=0) %} {% set approval_count = namespace(value=0) %} {% set critical_count = namespace(value=0) %} {% for t in pagination.items %} {% if t.status not in ['Closed', 'Rejected'] %} {% set open_count.value = open_count.value + 1 %} {% endif %} {% if t.status == 'Approval Pending' %} {% set approval_count.value = approval_count.value + 1 %} {% endif %} {% if t.priority == 'Critical' %} {% set critical_count.value = critical_count.value + 1 %} {% endif %} {% endfor %}
Ticketing System

Rework Tickets

Scope: {{ 'All Tickets' if scope == 'all' else 'My Tickets' }} {% if status %} Status: {{ status }} {% endif %} {% if priority %} Priority: {{ priority }} {% endif %}
Total Matching Tickets

{{ total_count }}

Customer feedback and rework requests
Track ticket status, PM ownership, rework rounds, approvals, and affected jobcard line items.
{% if current_user.has_perm('ticketing.approve') %} Approvals {% endif %} Dashboard
Rework Management

Ticket List

Search, filter, and open rework tickets raised against operations jobcards.
{{ total_count }} Record(s)
Matching Tickets
{{ total_count }}
Based on current filters
Open On This Page
{{ open_count.value }}
Excludes closed / rejected
Approval Pending
{{ approval_count.value }}
Visible in current page
Critical
{{ critical_count.value }}
Critical tickets on this page
Filters
Find Tickets
{% if q or status or priority or scope != 'my' %} Clear {% endif %}
{% if pagination.items %}
{% for t in pagination.items %} {% endfor %}
Ticket Jobcard Quote Line Item Priority Status Reworks PM Action
{{ t.ticket_no }}
{{ t.feedback_type or 'Rework' }}
{% if t.jobcard %}
{{ t.jobcard.jobcard_code }}
{% if t.jobcard.client %}
{{ t.jobcard.client.company_name }}
{% endif %} {% 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.status in ['Closed', 'Resolved'] %} {{ t.status }} {% elif t.status in ['Rejected'] %} {{ t.status }} {% elif t.status in ['Approval Pending'] %} {{ t.status }} {% else %} {{ t.status }} {% endif %} {{ t.rework_count or 0 }} {% if t.assigned_pm %}
{{ t.assigned_pm.name }}
{% else %} - {% endif %}
Open
{% else %}
No tickets found
Try changing the search text, status, priority, or scope filter.
{% endif %} {% if pagination.pages > 1 %} {% endif %}
{% endblock %}