{% extends "base.html" %} {% block title %}Software Project {{ jobcard.jobcard_code }}{% endblock %} {% block header %}Software Project{% endblock %} {% block content %}
{{ jobcard.jobcard_code }} · {{ jobcard.quote.quote_code if jobcard.quote else '' }}

{{ jobcard.client.company_name if jobcard.client else 'Software Project' }}

{{ jobcard.status }}
Open Jobcard{% if current_user.has_perm('software.jobcard.close') and jobcard.status not in ['Ready For Billing','Completed'] %}
{% endif %}
{% for svc in services %} {% set svc_rows = assignments|selectattr('jobcard_service_id','equalto',svc.id)|list %}
Service Line

{{ svc.service_name or (svc.quote_item.item_name if svc.quote_item else 'Service') }}

Quantity {{ svc.total_quantity or 0 }} · {{ svc.status }}
{{ svc_rows|length }} Assignment(s)
{% if svc.quote_item and svc.quote_item in saas_items %}
This is a SaaS line item. Use the Software Jobcard for vendor cost, subscription and billing controls.
{% else %} {% if current_user.has_perm('software.assignment.manage') and jobcard.status not in ['Ready For Billing','Completed'] %}
Create Assignment
Assign to an internal software resource or a dedicated external software vendor.
{% endif %} {% if svc_rows %}
{% for a in svc_rows %} {% set sts = subtasks_by_assignment.get(a.id, []) %} {% set done = sts|selectattr('status','equalto','DONE')|list|length %} {% set logged = logged_hours.get(a.id,0) or 0 %}
{{ a.internal_resource.user.name if a.internal_resource else (a.external_vendor.vendor_name if a.external_vendor else '-') }}
{{ a.assignment_target_type|title }}{% if a.deadline %} · Due {{a.deadline.strftime('%d %b %Y')}}{% endif %}
{{a.status|replace('_',' ')|title}}
Logged
{{logged}}h
Est. Cost
₹{{estimated_costs.get(a.id,0)|indian_amount}}
Actual Cost
₹{{costs.get(a.id,0)|indian_amount}}
{% if a.instruction %}
{{a.instruction}}
{% endif %}
Subtasks
{{done}}/{{sts|length}} done
{% for st in sts %}
{{st.title}}
{{st.priority|title}}{% if st.due_date %} · {{st.due_date.strftime('%d %b %Y')}}{% endif %}{% if st.description %} · {{st.description}}{% endif %}
{{st.status|replace('_',' ')|title}}
{% else %}
No subtasks yet.
{% endfor %}
{% endfor %}
{% else %}
No assignments yet.
{% endif %} {% endif %}
{% endfor %}
{% endblock %}