{% extends "base.html" %} {% block title %}Internal Task Detail{% endblock %} {% block header %}Internal Task Detail{% endblock %} {% set jc = svc.jobcard %} {% set quote = jc.quote if jc else none %} {% set item = svc.quote_item %} {% set internal_transfer_users = internal_transfer_users if internal_transfer_users is defined else [] %} {% set is_child_task = assignment.parent_assignment_id is not none %} {% set is_delegated_parent = assignment.parent_assignment_id is none and assignment.status == "Delegated" %} {% set can_modify_assignment = jc and jc.status not in ["Ready For Billing", "Closure Approval Pending"] %} {% set parent_qty = delegation_summary.parent_qty if delegation_summary is defined else assignment.assigned_qty %} {% set delegated_qty_value = delegated_qty if delegated_qty is defined else 0 %} {% set remaining_qty_value = remaining_delegatable_qty if remaining_delegatable_qty is defined else assignment.assigned_qty %} {% set child_rows = delegated_child_rows if delegated_child_rows is defined else [] %} {% set can_transfer_assignment = assignment.status not in ["Completed", "Delegated"] and can_modify_assignment %} {% set can_submit_checklist = assignment.checklist_status != "Submitted" and not is_delegated_parent %} {% set can_update_status = assignment.status != "Delegated" %} {% block content %}
| User | Qty | Deadline | Status | Checklist | Assigned On | Instruction |
|---|---|---|---|---|---|---|
|
{{ child.internal_user.name if child.internal_user else '—' }}
{% if child.internal_user and child.internal_user.email %}
{{ child.internal_user.email }}
{% endif %}
|
{{ child.assigned_qty or 0 }} | {% if child.deadline %} {{ child.deadline.strftime('%d-%m-%Y %I:%M %p') }} {% else %} — {% endif %} | {% if child.status == "Completed" %} Completed {% elif child.status == "In Progress" %} In Progress {% elif child.status == "On Hold" %} On Hold {% else %} {{ child.status or 'Assigned' }} {% endif %} | {% if child.checklist_status == "Submitted" %} Submitted {% else %} Pending {% endif %} | {% if child.assigned_at %} {{ child.assigned_at.strftime('%d-%m-%Y %I:%M %p') }} {% else %} — {% endif %} | {% if child.instruction or child.additional_instruction %} {{ child.instruction or child.additional_instruction }} {% else %} — {% endif %} |
| No delegation added yet. | ||||||
| Field | Value |
|---|---|
| {{ f.field_master.field_label if f.field_master else f.field_key }} | {% if f.file_path %} View File {% elif f.field_value %} {{ f.field_value }} {% else %} — {% endif %} |
| No additional fields captured for this service. | |