{% extends "base.html" %} {% block title %}Edit Quote{% endblock %} {% block header %}Quotes{% endblock %} {% block content %} {% set currency_map = {} %} {% for c in currencies %} {% set _ = currency_map.update({(c.code|upper): (c.symbol or c.code)}) %} {% endfor %} {% set cur_code = (q.currency or 'INR')|upper %} {% set cur_symbol = currency_map.get(cur_code, cur_code) %}
Commercial Quote Editor

Edit Quote

{{ q.quote_code }} • Version {{ q.version }}
Quote: {{ q.quote_code }} Version {{ q.version }} {{ cur_code }}{% if cur_symbol and cur_symbol != cur_code %} ({{ cur_symbol }}){% endif %}
Current Total
{{ cur_symbol }} {{ indian_amount(q.total or 0) }}
Auto-save enabled for line items and totals
View Quote Add Item
Line Items
Edit Quote Items
Each item is split into details and pricing rows for better visibility.
Add Item
{% if items|length > 0 %} {% for it in items %}
{{ loop.index }}
Billing cycle multiplies the amount. Example: Half-yearly ×6, Annual ×12.
Optional service mapping
{% set bc = (it.billing_cycle or 'ONETIME')|upper %}
Amount
{{ cur_symbol }} {{ (it.amount or 0) }}
{% endfor %} {% else %}
No line items yet
Click Add Item to start building this quote.
Add Item
{% endif %}
Auto-save is ON
Idle
Summary
Quote Settings & Totals
Currency, GST, discount, notes and final totals.
GST is available only for INR.
Forecast date for this quote closure.
{% if q.branch %}
Linked Branch
Branch: {{ q.branch.branch_location or '—' }}
State: {{ q.branch.state_master.name if q.branch.state_master else (q.branch.state or '—') }}
Country: {{ q.branch.country_master.name if q.branch.country_master else (q.branch.country or '—') }}
{% endif %}
{% if q.branch_id %} Auto-filled from linked client branch. {% else %} Required to calculate GST before client conversion. {% endif %}
{% if q.branch_id %} Auto-filled from linked client branch. {% else %} Optional until client branch is linked. {% endif %}
GST is calculated automatically by comparing Company Branch State with Customer Branch State. If a client branch is linked, its state is used as the source of truth.
{% if q.branch_id and q.company_branch %}
GST Comparison
Company State: {{ q.company_branch.state_master.name if q.company_branch.state_master else (q.company_branch.state or '—') }}
Customer State: {{ q.branch.state_master.name if q.branch.state_master else (q.branch.state or '—') }}
{% endif %}
Live Totals
Financial Summary
{{ cur_symbol }}
Subtotal
{{ cur_symbol }} {{ q.subtotal or 0 }}
Discount
{{ cur_symbol }} {{ q.discount or 0 }}

CGST
{{ cur_symbol }} {{ q.cgst or 0 }}
SGST
{{ cur_symbol }} {{ q.sgst or 0 }}
IGST
{{ cur_symbol }} {{ q.igst or 0 }}
Total GST
{{ cur_symbol }} {{ q.tax or 0 }}
Total
{{ cur_symbol }} {{ q.total or 0 }}
Add Item {% endblock %}