{% extends "base.html" %} {% block title %}Internal Process Task{% endblock %} {% block header %}Internal Process Task{% endblock %} {% block content %} {% set process = assignment.jobcard_process %} {% set process_master = process.process_master if process else None %} {% set jobcard = process.jobcard if process else None %} {% set quote = jobcard.quote if jobcard else None %} {% set svc = assignment.jobcard_service %} {% set process_code = (process_master.code if process_master and process_master.code else '')|lower|trim %} {% set process_name = (process_master.name if process_master and process_master.name else '')|lower|trim %} {% set is_mtpe = process_code == 'mtpe' or process_name == 'mtpe' or process_name == 'mtpe()' or 'mtpe' in process_code or 'mtpe' in process_name %} {% set internal_transfer_users = internal_transfer_users if internal_transfer_users is defined else [] %} {% set delegated_child_rows = delegated_child_rows if delegated_child_rows is defined else [] %} {% set remaining_delegatable_qty = remaining_delegatable_qty if remaining_delegatable_qty is defined else assignment.assigned_qty %} {% set delegated_qty = delegated_qty if delegated_qty is defined else 0 %} {% set completed_delegated_qty = completed_delegated_qty if completed_delegated_qty is defined else 0 %} {% set is_child_task = assignment.parent_assignment_id is defined and assignment.parent_assignment_id is not none %} {% set is_delegated_parent = assignment.parent_assignment_id is defined and assignment.parent_assignment_id is none and assignment.status == "Delegated" %} {% set can_modify_assignment = jobcard is not none and jobcard.status not in ["Ready For Billing", "Closure Approval Pending"] %} {% set can_delegate_assignment = can_delegate_assignment if can_delegate_assignment is defined else (assignment.status not in ["Completed", "Delegated", "Cancelled"] and can_modify_assignment and not is_child_task and remaining_delegatable_qty and remaining_delegatable_qty > 0) %} {% set can_update_status = assignment.status != "Delegated" %}
| User | Qty | Deadline | Status | Assigned On | Instruction |
|---|---|---|---|---|---|
|
{{ child.internal_user.name if child.internal_user else '—' }}
{{ child.internal_user.email if child.internal_user and child.internal_user.email else '' }}
|
{{ child.assigned_qty or 0 }} |
{% if child.deadline %}
{{ child.deadline.strftime('%d %b %Y') }}
{{ child.deadline.strftime('%I:%M %p') }}
{% else %}
—
{% endif %}
|
{% if child.status == "Completed" %} Completed {% elif child.status == "In Progress" %} In Progress {% elif child.status == "On Hold" %} On Hold {% elif child.status == "Delegated" %} Delegated {% else %} {{ child.status or 'Assigned' }} {% endif %} |
{% if child.assigned_at %}
{{ child.assigned_at.strftime('%d %b %Y') }}
{{ child.assigned_at.strftime('%I:%M %p') }}
{% else %}
—
{% endif %}
|
{% if child.instruction %}
{{ child.instruction }}
{% else %}
—
{% endif %}
|