{% extends "alloc/base.html" %} {% load alloc_extras %} {% block title %}{{ kind|capfirst }} profitability{% endblock %} {% block content %}

{{ kind|capfirst }} profitability

{% include "alloc/_selector.html" %} {% if rows %}

{{ rows|length }} {{ kind }}; {{ loss_count }} lose money under ABC; {{ hidden }} look profitable under traditional costing (single plant-wide rate of {{ t.trad_rate|money2 }} per labour hour) but are not. Sort by clicking a heading.

{% for key, label in sorts.items %}{% if key != "name" or True %}{% if key == "name" %}{% if kind == "customers" %}{% endif %}{% endif %}{% endif %}{% endfor %} {% for r in rows %} {% if kind == "customers" %}{% endif %} {% endfor %}
{{ label }}{% if key == sort %} {% if dir == 'desc' %}▼{% else %}▲{% endif %}{% endif %}ChannelFlag
{% if kind != "channels" or True %}{{ r.code }}{% endif %} {% if r.name != r.code %}{{ r.name }}{% endif %}{{ r.channel }}{{ r.revenue|money }}{{ r.direct_margin|money }}{{ r.activity_cost|money }} {{ r.profit|money }}{{ r.margin_pct|pct }} {{ r.trad_profit|money }}{{ r.delta|money }} {% if r.flag %}{{ r.flag }}{% endif %}
{% elif not error %}

No data.

{% endif %} {% endblock %}