{% include "_pwa_head.html" %}
| # | Job No | Status | Customer | Mobile | Device | Model | Serial Number | Complaint | Branch Name | Priority | Call Type | Complaint Type | Assigned Engineer | {% if (current_view or 'active') in ['all', 'closed'] %}Closure Result | {% if (current_view or 'active') == 'all' %}Outcome | {% endif %} {% endif %} {% if session.role == 'super_admin' and (current_view or 'active') == 'all' %}Action | {% endif %}Age | Age Group | Created On | Warranty | Backup |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ (page - 1) * 20 + loop.index }} |
{{ job.job_number }}
{% if job.specialist_transfer_branch_name %}
Specialist: {{ job.specialist_transfer_branch_name }}{% if job.specialist_transfer_engineer %} | {{ job.specialist_transfer_engineer }}{% endif %}
{{ job.specialist_transfer_status or 'Transferred' }}
{% if not job.specialist_transfer_is_active and job.specialist_service_total %}
| Share: {{ '%.2f'|format(job.specialist_service_total|float) }}
{% endif %}
{% endif %}
|
{% if session.role in ["super_admin", "admin", "coordinator"] and can_manage_job_row and (job.closure_status is not defined or not job.closure_status) and job.status != 'Closed' %} {% else %} {{ job.status }} {% endif %} | {{ job.customer_name or '-' }} | {{ job.mobile or '-' }} | {{ job.device or '-' }} | {{ job.model or '-' }} | {{ job.serial_number or '-' }} | {{ job.complaint or '-' }} | {{ job.branch_name or '-' }} | {{ job.priority or '-' }} | {{ job.call_type or '-' }} | {{ job.complaint_type or '-' }} |
{{ job.assigned_engineer or '-' }}
{% if job.specialist_transfer_branch_name %}
Specialist: {{ job.specialist_transfer_branch_name }}{% if job.specialist_transfer_engineer %} | {{ job.specialist_transfer_engineer }}{% endif %}
{{ job.specialist_transfer_status or 'Transferred' }}
{% if not job.specialist_transfer_is_active and job.specialist_service_total %}
| Share: {{ '%.2f'|format(job.specialist_service_total|float) }}
{% endif %}
{% endif %}
|
{% if (current_view or 'active') in ['all', 'closed'] %}
{% set closure_text = (job.closure_status or '')|trim %} {% set closure_lower = closure_text|lower %} {% if 'closed success' in closure_lower %} Closed Success {% elif 'closed failed' in closure_lower %} Closed Failed {% else %} Open {% endif %} | {% if (current_view or 'active') == 'all' %}{% if 'closed success' in closure_lower %} Won {% elif 'closed failed' in closure_lower %} {{ closure_text.split(' - ', 1)[1] if ' - ' in closure_text else 'Closed Failed' }} {% else %} - {% endif %} | {% endif %} {% endif %} {% if session.role == 'super_admin' and can_manage_job_row and (current_view or 'active') == 'all' %}{% endif %} | {{ job.age_days if job.age_days is not none else '-' }} | {{ job.age_group or '-' }} | {{ job.created_on or '-' }} | {{ job.warranty_status }} | {{ job.backup_required }} |