{% load humanize %} {% load dashboard_extras %}
{% for row in last_month_daily %} {% with op_exp=daily_expenses_last_month_map|get_item:row.day|default:0 %} {% endwith %} {% empty %} {% endfor %}
Date Cash Mpesa Total Sales Gross Profit Op. Expenses Net Profit
{{ row.day }} Ksh {{ row.cash_sales|default:0|intcomma }} Ksh {{ row.mpesa_sales|default:0|intcomma }} Ksh {{ row.daily_sales|intcomma }} Ksh {{ row.daily_profit|intcomma }} {% if op_exp > 0 %} − Ksh {{ op_exp|intcomma }} {% else %} — {% endif %} Ksh {{ row.daily_profit|subtract:op_exp|intcomma }}
No data