{% extends "alloc/base.html" %} {% load alloc_extras %} {% block title %}{{ row.code }}{% endblock %} {% block content %} {% if row %}

← {{ kind|capfirst }}

{{ row.code }} {% if row.name != row.code %}{{ row.name }}{% endif %}{% if row.channel %} {{ row.channel }}{% endif %}

{% include "alloc/_selector.html" %}
Revenue{{ row.revenue|money }}
Direct margin{{ row.direct_margin|money }}
Activity cost{{ row.activity_cost|money }}
ABC profit{{ row.profit|money }} ({{ row.margin_pct|pct }})
Traditional profit{{ row.trad_profit|money }}
{% if row.flag %}

{{ row.flag }} Traditional costing assigns {{ row.trad_overhead|money }} of overhead from {{ row.labor_hours|money }} labour hours; ABC assigns {{ row.activity_cost|money }}.

{% endif %}

Profit waterfall

{% for t in wf.ticks %}{{ t.label }}{% endfor %} {% for b in wf.bars %}{{ b.label }}: {{ b.value|money }} {{ b.value|money }} {{ b.label }}{% endfor %}

Activity costs

{% for name, cost in activities %}{% endfor %}
ActivityCostShare
{{ name }}{{ cost|money }}{% widthratio cost row.activity_cost 100 %}%
{% else %}{% include "alloc/_selector.html" %}{% endif %} {% endblock %}