{% extends "base.html" %} {% block title %}My Internal Tasks{% endblock %} {% block header %}My Internal Tasks{% endblock %} {% block content %}
| Quote | Jobcard | Task / Line Item | Quantity | Assigned On | Status | Action |
|---|---|---|---|---|---|---|
|
{% if quote %}
{{ quote.quote_code }}
Quote ID: #{{ quote.id }}
{% else %}
—
{% endif %}
|
JC
{{ jc.jobcard_code if jc else '—' }}
{% if jc and jc.client %}
{{ jc.client.company_name }}
{% elif quote and quote.client %}
{{ quote.client.company_name }}
{% else %}
—
{% endif %}
|
{{ line_title or '—' }}
{% if task_type == "PROCESS" %}
Internal Process
{% else %}
Service Task
{% endif %}
{% if line_subtitle %}
{{ line_subtitle }}
{% endif %}
{% if task_type == "SERVICE" and assignment and assignment.instruction %}
{{ assignment.instruction[:80] }}{% if assignment.instruction|length > 80 %}...{% endif %}
{% endif %}
{% if task_type == "PROCESS" and process_assignment and process_assignment.instruction %}
{{ process_assignment.instruction[:80] }}{% if process_assignment.instruction|length > 80 %}...{% endif %}
{% endif %}
|
{{ quantity or 0 }}
Assigned qty
|
{{ assigned_at.strftime('%d %b %Y') if assigned_at else '—' }}
{{ assigned_at.strftime('%I:%M %p') if assigned_at else '' }}
|
{% if row_status == "Completed" %}
Completed
{% elif row_status == "In Progress" %}
In Progress
{% elif row_status == "On Hold" %}
On Hold
{% elif row_status == "Assigned" %}
Assigned
{% else %}
{{ row_status or 'Assigned' }}
{% endif %}
{% if task_type == "SERVICE" %}
{% if checklist_status == "Submitted" %}
Checklist submitted
{% else %}
Checklist pending
{% endif %}
{% else %}
Process assignment
{% endif %}
|
{% set can_transfer_assignment = (
task_type == "SERVICE"
and assignment
and row_status != "Completed"
and jc
and jc.status not in ["Ready For Billing", "Closure Approval Pending"]
) %}
View
{% if can_transfer_assignment %}
{% endif %}
|
No internal tasks assigned
Service assignments and internal process assignments will appear here.
|
||||||