Credit Management
{% if credit.has_alerts %} {% endif %}
{% for item in credit.top_outstanding %}
{% empty %}
{% endfor %}
{{ item.customer_name }}
Due: {{ item.due_date|date:"M d, Y" }}
{% if item.is_overdue %}
({{ item.days_outstanding }} days overdue)
{% endif %}
KES {{ item.amount|floatformat:2 }}
Total Outstanding
KES {{ credit.total_outstanding|floatformat:2 }}
Customers with Credit
{{ credit.customers_with_credit }}
Sales Performance
Total Sales
{{ sales.total_sales }}
Revenue
{{ sales.total_revenue|floatformat:0 }}
{% if sales.growth_percentage >= 0 %}▲{% else %}▼{% endif %}
{{ sales.growth_percentage|floatformat:1 }}%
Profit
{{ sales.total_profit|floatformat:0 }}
Avg Sale
{{ sales.avg_sale_value|floatformat:0 }}
{% for product in sales.top_products %}
{% empty %}
{% if sales.sales_by_location %}
{{ product.name }}
KES {{ product.revenue|floatformat:0 }}
{{ product.units_sold }} units
No sales recorded this week
{% endfor %}
{% for location in sales.sales_by_location %}
{% endif %}
{{ location.location }} ({{ location.sales_count }} sales)
KES {{ location.revenue|floatformat:0 }}
{% endfor %}
Expenses
Total Expenses This Week
KES {{ expenses.total_expenses|floatformat:2 }}
Previous Week
KES {{ expenses.prev_week_expenses|floatformat:2 }}
Change
{% if expenses.change_percentage >= 0 %}+{% endif %}{{ expenses.change_percentage|floatformat:1 }}%
{% for expense in expenses.breakdown %}
{% empty %}
{{ expense.category }}
KES {{ expense.amount|floatformat:2 }}
No expenses recorded this week
{% endfor %}
Inventory Alerts
{% if inventory.has_critical_alerts %} {% endif %} {% if inventory.low_stock_items %}
{% for item in inventory.low_stock_items %}
{{ item.quantity }} remaining
{% endfor %}
{% endif %}
{% if inventory.out_of_stock_items %}
{{ item.name }}
{{ item.category }}
{% for item in inventory.out_of_stock_items %}
Out of Stock
{% endfor %}
{% endif %}
{% if not inventory.low_stock_items and not inventory.out_of_stock_items %}
{% endif %}
{{ item.name }}
{{ item.category }}