{% extends "comp/base.html" %} {% load comp_extras %} {% block title %}Dashboard{% endblock %} {% block content %}

{{ rep.name }}

{{ rep.get_role_display }} · {{ rep.team }} · {{ rep.territory }}{% if plan %} · {{ plan }}{% endif %}

{% if reps %}{% endif %}
{% if not period %}

No periods yet. Run python manage.py seed_demo.

{% else %}

Attainment YTD

{{ att_pct|floatformat:1 }}% of {{ res.quota|money }} quota

Credit YTD {{ res.credit_ytd|money }}{% if to_next is not None %}
{{ to_next|money }} to the next tier{% endif %}

Tier ladder

{% if tiers %} {% for t in tiers %}{% endfor %}
FromMultiplier
{{ t.threshold|pct }}x{{ t.mult|floatformat:"-2" }}{% if t.current %}you are here{% elif t.next is None and False %}{% endif %}

{{ plan.get_tier_mode_display }} tiers: {% if plan.tier_mode == "marginal" %}each tier's multiplier applies only to credit inside that band.{% else %}the reached tier's multiplier applies to all credit YTD.{% endif %}

{% else %}

This plan has no attainment tiers.

{% endif %}

Earnings, {{ period.label }}

{{ res.earnings|money }}
Draw advanced{{ res.draw_paid|money }}
Unrecovered balance carried in{{ res.balance_in|money }}
Unrecovered balance carried out{{ res.balance_out|money }}
Net pay{{ res.net_pay|money }}
{% if stored %}

Open full statement with calculation traces

{% else %}

Live preview: period not calculated yet.

{% endif %}

What-if simulator

If I close this much more ACV in {{ period.label }}:

$0
Projected earnings{{ res.earnings|money }}
Change$0.00
Projected attainment{{ att_pct|floatformat:1 }}%
{% if lines %}

Recent lines

{% for l in lines %}{% endfor %}
DateLineAmount
{{ l.event_date }}{{ l.description }}{{ l.amount|money }}
{% endif %}

Statement history

{% for s in recent %}{% endfor %}
PeriodEarningsNet pay
{{ s.period.label }}{{ s.earnings|money }}{{ s.net_pay|money }}View
{% endif %} {% endblock %}