{% extends "comp/base.html" %} {% load comp_extras %} {% block title %}Statement {{ st.period.label }}{% endblock %} {% block content %}

Statement {{ st.period.label }}

{{ st.rep.name }} · {{ st.period.status }}

Earnings
{{ st.earnings|money }}
Attainment YTD
{{ st.attainment|pct }}
{{ st.credit_ytd|money }} of {{ st.quota|money }}
Net pay
{{ st.net_pay|money }}
draw {{ st.draw_paid|money }} · carried {{ st.balance_in|money }} in, {{ st.balance_out|money }} out{% if st.forgiven %} · forgiven {{ st.forgiven|money }}{% endif %}

Lines

{% for l in lines %} {% endfor %}
DateTypeDescriptionAmount
{{ l.event_date|default:"" }}{{ l.kind }}
{{ l.description }}{% if l.disputes.all %} disputed{% endif %}

{{ l.trace.formula }}

{% if l.trace.inputs %}
    {% for k, v in l.trace.inputs.items %}{% if v|is_list %}
  • {{ k }}
      {% for x in v %}
    • {{ x }}
    • {% endfor %}
  • {% else %}
  • {{ k }}: {{ v }}
  • {% endif %}{% endfor %}
{% endif %} {% if l.deal %}

Deal: {{ l.deal.external_id }} ({{ l.deal.customer }}, closed {{ l.deal.close_date }})

{% endif %} {% if l.ref_line %}

Reverses line from {{ l.ref_line.statement.period.label }}: {{ l.ref_line.description }} ({{ l.ref_line.amount|money }})

{% endif %}
{% csrf_token %}
{{ l.amount|money }}
Total earnings{{ st.earnings|money }}
{% endblock %}