{% extends "base.html" %} {% block title %}Low Margin Closure Approvals{% endblock %} {% block header %}Low Margin Closure Approvals{% endblock %} {% block content %}
{% set total_requests = requests|length if requests else 0 %}
Operations Approval Queue

Low Margin Closure Approvals

Review jobcards with profit margin below the closure threshold before they are marked Ready For Billing.
Total Requests
{{ total_requests }}
Pending
{{ pending_count }}
Awaiting decision
Approved Today
{{ approved_today }}
Marked Ready For Billing
Rejected Today
{{ rejected_today }}
Returned to Completed
Approval Queue
Low Margin Closure Requests
Approve only after verifying commercial impact, billing branch, closure remark and vendor cost.
{{ total_requests }} Request(s)
{% if requests and requests|length > 0 %}
{% for row in requests %} {% endfor %}
Jobcard Requested By Requested At Amount Ex Tax Vendor Cost Profit Margin Status Action
{{ row.jobcard.jobcard_code if row.jobcard else '—' }} {% if row.quote %}
Quote: {{ row.quote.quote_code }}
{% endif %}
Billing Branch: {{ row.billing_company_branch.branch_name if row.billing_company_branch else '—' }}
{{ row.requested_by.name if row.requested_by else '—' }}
{{ row.requested_at.strftime('%d-%m-%Y') if row.requested_at else '—' }}
{{ row.requested_at.strftime('%I:%M %p') if row.requested_at else '' }}
{{ indian_amount(row.quote_amount_ex_tax or 0) }}
{{ indian_amount(row.total_vendor_costs or 0) }}
{% if (row.profit_amount or 0) >= 0 %}
{{ indian_amount(row.profit_amount or 0) }}
{% else %}
{{ indian_amount(row.profit_amount or 0) }}
{% endif %}
{{ "%.2f"|format(row.profit_margin_pct or 0) }}% {% if row.status == "Pending" %} Pending {% elif row.status == "Approved" %} Approved
by {{ row.approved_by.name if row.approved_by else '—' }}
{% elif row.status == "Rejected" %} Rejected
by {{ row.rejected_by.name if row.rejected_by else '—' }}
{% else %} {{ row.status }} {% endif %} {% if row.approval_remark %}
{{ row.approval_remark }}
{% endif %}
{% if row.status == "Pending" %}
{% else %} — {% endif %}
{% else %}
No low margin closure requests found
Approval requests will appear here when jobcards fall below the margin threshold.
{% endif %}
{% for row in requests %} {% if row.status == "Pending" %} {% endif %} {% endfor %} {% endblock %}