{% extends "contracts/base.html" %}{% load rr %}{% block title %}Modify {{ contract.number }}{% endblock %} {% block content %}

Modify {{ contract.number }} {{ contract.customer }}

{% csrf_token %}

1 · What changes?

{% for f in form %}{% endfor %}

Added goods or services

{{ lines.management_form }} {% for f in lines %}{% if f.errors %}{% endif %}{% endfor %}
ProductQtyUnit priceStartEndDeliveryFold into PO
{{ f.product }}{{ f.quantity }}{{ f.unit_price }}{{ f.start }}{{ f.end }}{{ f.delivery_date }}{{ f.po_group }}
{{ f.errors }}

Existing POs: {% for k, n in po_keys %}{{ k }} {{ n }}{% if not forloop.last %} · {% endif %}{% endfor %}. Leave lines blank for a price-only change.

{% if impact %}

2 · Classification

Suggested treatment: {{ impact.suggested }}

    {% for r in impact.reasons %}
  1. {{ r }}
  2. {% endfor %}
{{ kind_form.kind.label_tag }} {{ kind_form.kind }}

3 · Impact (showing: {{ impact.kind }})

Total revenue before{{ impact.total_before|money }}
Total revenue after{{ impact.total_after|money }}
Cumulative catch-up at effective date{{ impact.catch_up|money }}

Allocation by PO

{% for p in impact.pos %}{% endfor %}
PODescriptionBeforeAfter
{{ p.key }}{{ p.name }}{{ p.before|money }}{{ p.after|money }}

Months that change

{% for m, b, a in impact.months %}{% empty %}{% endfor %}
MonthBeforeAfter
{{ m|slice:":7" }}{{ b|money }}{{ a|money }}
No change to this contract's schedule.
{% endif %}
{% endblock %}