{% extends "core/base.html" %}{% load fmt %} {% block title %}{{ customer.name }}{% endblock %} {% block content %}

← All customers

{{ customer.name }}

{{ customer.segment }} · {{ customer.terms_days }}-day terms

Settled invoices{{ n }}
Own-data weight{{ weight|floatformat:0 }}%n / (n + {{ k|floatformat:0 }})
Empirical mean days late{% if emp_mean is None %}n/a{% else %}{{ emp_mean|floatformat:1 }}{% endif %}
Segment prior mean{{ prior_mean|floatformat:1 }}
Blended mean{{ blend_mean|floatformat:1 }}
Median / p90 late{{ p50 }} / {{ p90 }} d

Days paid after due date

{% for b in hist.bars %}{{ b.label }} days: {{ b.count }} invoice(s) {{ b.label }} {% if b.count %}{{ b.count }}{% endif %}{% endfor %}

on time or early late (5-day buckets)

Open invoices and expected payment

{% for o in open_rows %}{% empty %}{% endfor %}
InvoiceDueOverdueOutstandingMost likely weekProbabilityBeyond 13 wks
{{ o.r.number }}{{ o.r.due|date:"j M Y" }}{% if o.overdue %}{{ o.overdue }} d{% endif %}{{ o.r.outstanding|inr }} {% if o.best_week %}{{ o.best_week }}{% else %}after horizon{% endif %}{{ o.best_p|floatformat:0 }}%{{ o.beyond|floatformat:0 }}%
No open invoices.
{% endblock %}