{% extends "base.html" %} {% block title %}Software Jobcard - {{ jobcard.jobcard_code }}{% endblock %} {% block header %}Software Jobcard{% endblock %} {% block content %}
{{ software_type|replace('_',' ')|title }} · {{ jobcard.jobcard_code }}

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

{{ jobcard.quote.quote_code if jobcard.quote else '' }}
{{ jobcard.status }} {% if jobcard.assigned_to %}
PM: {{ jobcard.assigned_to.name }}
{% endif %}
{% include "operations/_advance_billing_panel.html" %} {% if software_type == 'SAAS' and jobcard.status in ['Ready For Billing','Completed'] %}
Finance Status
{% if latest_pi %}PI {{ latest_pi.pi_no }} · {{ latest_pi.status }}{% else %}PI Pending{% endif %} {% if latest_invoice %}Invoice Raised · {{ latest_invoice.invoice_no }}{% elif latest_pi %}Invoice Not Raised{% endif %}
{% endif %}
Back
{% if software_type == 'SAAS' %} {% if current_user.has_perm('software.vendors.manage') %} Add Software Vendor {% endif %} {% endif %} {% if current_user.has_perm('software.jobcard.close') and jobcard.status not in ['Ready For Billing','Completed'] %}
{% endif %}
{% if software_type == 'SAAS' %}
Billing Value (INR)
₹{{ commercial_overview.quote_amount_ex_tax|indian_amount }}
Vendor Cost (INR)
₹{{ commercial_overview.total_vendor_costs|indian_amount }}
Profit (INR)
₹{{ commercial_overview.profit_amount|indian_amount }}
Profit Margin
{% if commercial_overview.profit_margin_pct is not none %}{{ '%.2f'|format(commercial_overview.profit_margin_pct) }}%{% else %}-{% endif %}
{% if commercial_overview.missing_currency_rates %}
Missing Currency Rate Master entry for: {{ commercial_overview.missing_currency_rates|join(', ') }}
{% endif %}
SaaS Execution
Vendor Cost & Invoice
No Production, QC, workload or translator assignment is required for SaaS Jobcards.
{% for svc in services %} {% set cost = saas_costs.get(svc.id) %}
{{ svc.service_name or (svc.quote_item.item_name if svc.quote_item else 'SaaS Product') }}
{% if svc.quote_item %}{{ svc.quote_item.item_name }}{% endif %} · Qty {{ svc.total_quantity or (svc.quote_item.qty if svc.quote_item else 0) or 0 }} {% if svc.quote_item and svc.quote_item.billing_cycle %} · {{ svc.quote_item.billing_cycle|replace('_',' ')|title }}{% endif %}
{% if svc.quote_item %}{% set subscription = saas_subscriptions_by_quote_item.get(svc.quote_item.id) %}{% if subscription %}Subscription Created{% else %}Subscription Pending{% endif %}{% endif %} {{ svc.status }}
{% if not software_vendors %}
No Software Vendor added yet. Add the SaaS supplier first; this list is separate from the existing Vendor Management module.
{% if current_user.has_perm('software.vendors.manage') %}Add Software Vendor{% endif %}
{% endif %} {% set saas_locked = jobcard.status in ['Ready For Billing','Completed'] or jobcard.closed_at %}
Uses only the separate Software Vendor master.
{% if cost and cost.vendor_cost_inr is not none %}
INR value: ₹{{ cost.vendor_cost_inr|indian_amount }}{% if cost.conversion_rate_to_inr %} · Rate {{ cost.conversion_rate_to_inr }}{% endif %}
{% else %}
Converted to INR from Currency Rate Master when saved.
{% endif %}
{% if cost and cost.vendor_invoice_path %} {% endif %}
{% set subscription = saas_subscriptions_by_quote_item.get(svc.quote_item.id) if svc.quote_item else None %}
Saving vendor details creates the SaaS subscription automatically. Recurring billing starts only after Finance creates the first invoice.
{% if saas_locked %} Closed Jobcard - fields locked{% endif %}
{% endfor %}
{% else %}
{{ 'AMC' if software_type == 'AMC' else 'Development' }} Execution

Assignments & Work Hours

Assign work, track effort and see planned versus actual execution cost in one place.
{{ total_assignments }} Assignment(s)
{% for svc in services %} {% set rows = assignments_by_service.get(svc.id, []) %} {% set total_logged = namespace(v=0) %} {% set total_estimated_cost = namespace(v=0) %} {% set total_actual_cost = namespace(v=0) %} {% for a in rows %} {% set total_logged.v = total_logged.v + (logged_hours.get(a.id, 0) or 0) %} {% set total_estimated_cost.v = total_estimated_cost.v + (estimated_costs.get(a.id, 0) or 0) %} {% set total_actual_cost.v = total_actual_cost.v + (actual_costs.get(a.id, 0) or 0) %} {% endfor %}
{{ svc.service_name or (svc.quote_item.item_name if svc.quote_item else 'Software Service') }}
{{ svc.status }}
Quantity {{ svc.total_quantity or 0 }}
{{ rows|length }} Assignment(s)
{% if rows %}
Logged Hours
{{ total_logged.v }}h
Estimated Cost
₹{{ total_estimated_cost.v|indian_amount }}
Actual Cost
₹{{ total_actual_cost.v|indian_amount }}
Completed
{{ rows|selectattr('status','equalto','COMPLETED')|list|length }}/{{ rows|length }}
{% endif %} {% if current_user.has_perm('software.assignment.manage') and jobcard.status not in ['Ready For Billing','Completed'] %}
New Assignment
₹
Defaults from resource/vendor.
₹
{% endif %} {% if rows %}
Active Work Board
Each assignment shows commercial details, subtask progress, work logs and completion controls.
{% for assignment in rows %} {% set assignee = assignment.internal_resource.user.name if assignment.internal_resource else (assignment.external_vendor.vendor_name if assignment.external_vendor else '-') %} {% set rate = assignment.hourly_cost or 0 %} {% set fixed = assignment.fixed_cost or 0 %} {% set logged = logged_hours.get(assignment.id, 0) or 0 %} {% set subtasks = subtasks_by_assignment.get(assignment.id, []) %} {% set done_subtasks = subtasks|selectattr('status','equalto','DONE')|list|length %} {% set blocked_subtasks = subtasks|selectattr('status','equalto','BLOCKED')|list|length %} {% set open_subtasks = subtasks|length - done_subtasks %} {% set progress = ((done_subtasks * 100 / subtasks|length)|round|int) if subtasks else (100 if assignment.status == 'COMPLETED' else 0) %}
{{ assignee }}
{{ assignment.status|replace('_',' ')|title }}{% if blocked_subtasks %}{{ blocked_subtasks }} blocked{% endif %}
{{ 'Internal Software Resource' if assignment.assignment_target_type == 'INTERNAL' else 'External Software Vendor' }}{% if assignment.deadline %} · Due {{ assignment.deadline.strftime('%d %b %Y, %I:%M %p') }}{% endif %}
{% if assignment.instruction %}
{{ assignment.instruction }}
{% endif %}
Subtask Progress
{{ done_subtasks }}/{{ subtasks|length }} complete
Commercial
{% if fixed and fixed > 0 %}
Fixed ₹{{fixed|indian_amount}}
{% else %}
₹{{rate|indian_amount}}/hr
{% endif %}
{{ assignment.estimated_hours or 0 }}h estimated
Logged Hours
{{logged}}h
Actual effort
Estimated Cost
₹{{estimated_costs.get(assignment.id,0)|indian_amount}}
Planned
Actual Cost
₹{{actual_costs.get(assignment.id,0)|indian_amount}}
From logged work
Subtasks
Break the assignment into monitorable work items.
{% if subtasks %}{{done_subtasks}}/{{subtasks|length}}{% endif %}
{% for st in subtasks %}
{{st.title}}
{% if st.description %}
{{st.description}}
{% endif %}
{{st.priority|title}}{% if st.due_date %}{{st.due_date.strftime('%d %b %Y')}}{% endif %}{{st.status|replace('_',' ')|title}}
{% if assignment.status != 'COMPLETED' and (current_user.has_perm('software.time.create') or current_user.has_perm('software.assignment.manage')) %}
{% endif %}
{% else %}
No subtasks yet. Add the first subtask below.
{% endfor %} {% if current_user.has_perm('software.assignment.manage') and assignment.status != 'COMPLETED' %}
Add Subtask
{% endif %}
Work Hours
Log time against a specific subtask or general task.
{{assignment.time_entries.count()}} logs
{% if assignment.time_entries.count() %}
View work history
{% for entry in assignment.time_entries.all()|sort(attribute='work_date', reverse=true) %}
{{entry.work_date.strftime('%d %b %Y')}}{{entry.hours}}h
{% if entry.subtask %}
{{entry.subtask.title}}
{% endif %}
{{entry.description}}
{% endfor %}
{% endif %} {% if current_user.has_perm('software.time.create') and assignment.status != 'COMPLETED' %}
{% if not logged or logged <= 0 %}
Log at least some work hours before completion.
{% endif %}{% if open_subtasks > 0 %}
Complete {{open_subtasks}} open subtask(s) first.
{% endif %}
{% elif assignment.status=='COMPLETED' %}
Completed{% if assignment.completed_at %} on {{assignment.completed_at.strftime('%d %b %Y')}}{% endif %}{% if assignment.completion_remark %}
{{assignment.completion_remark}}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
No Software assignments yet.
Create the first assignment above to start tracking work and subtasks.
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}