{% extends "base.html" %} {% block title %}{% if scope == 'all' %}All Jobcards{% else %}My Jobcards{% endif %}{% endblock %} {% block header %}Operations{% endblock %} {% block content %}
| Jobcard | Quote / Opportunity | Client | Services | Owner | Assigned By | Status | Client Deadline | Created | Action |
|---|---|---|---|---|---|---|---|---|---|
|
JC
{{ jc.jobcard_code }}
Record #{{ jc.id }}
{% if not effective_client_deadline %}
Client deadline missing
{% endif %}
|
{% if quote %}
{{ quote.quote_code }}
{{ quote.opportunity.title if quote.opportunity else '—' }}
{% else %}
—
{% endif %}
|
{{ jc.client.company_name if jc.client else '—' }}
{{ jc.branch.branch_location if jc.branch else '—' }}
{% if jc.branch and jc.branch.city %}, {{ jc.branch.city }}{% endif %}
|
{% set ns = namespace(unique_services=[], total_services=0) %} {% for service_row in jc.services.all() %} {% set ns.total_services = ns.total_services + 1 %} {% set service_name = (service_row.service_name or 'Service')|trim %} {% if service_name not in ns.unique_services and ns.unique_services|length < 3 %} {{ service_name }} {% set ns.unique_services = ns.unique_services + [service_name] %} {% endif %} {% endfor %} {% if ns.total_services > ns.unique_services|length %} +{{ ns.total_services - ns.unique_services|length }} {% endif %} |
{{ jc.current_owner.name if jc.current_owner else (jc.assigned_to.name if jc.assigned_to else '—') }}
{% if jc.current_owner and jc.assigned_to and jc.current_owner_id != jc.assigned_to_id %}
Transferred from {{ jc.assigned_to.name }}
{% else %}
Project Manager
{% endif %}
|
{{ jc.assigned_by.name if jc.assigned_by else '—' }}
|
{% if latest_invoice %} Invoice Raised {% elif latest_pi %} PI Raised {% elif jc.status == 'Completed' %} Completed {% elif jc.status == 'Ready For Billing' %} Ready For Billing {% elif jc.status == 'In Progress' %} In Progress {% elif jc.status == 'On Hold' %} On Hold {% elif jc.status == 'Cancelled' %} Cancelled {% else %} {{ jc.status or 'Submitted' }} {% endif %} |
{% if effective_client_deadline %}
{{ effective_client_deadline.strftime('%d %b %Y') }}
{{ effective_client_deadline.strftime('%I:%M %p') }}
{% else %}
Not entered
Open jobcard to add
{% endif %}
|
{{ jc.created_at.strftime('%d %b %Y') if jc.created_at else '—' }}
{{ jc.created_at.strftime('%I:%M %p') if jc.created_at else '' }}
|
View |
No jobcards found
Try changing filters or search keywords.
|
|||||||||