{% extends 'base.html' %} {% block title %}Dashboard{% endblock %} {% block content %}
Reset
Revenue
{{ business.currency }} {{ revenue|floatformat:0 }}
{{ sales_count }} sales
COGS
{{ business.currency }} {{ cogs|floatformat:0 }}
Cost of goods sold
Gross Profit
{{ business.currency }} {{ gross_profit|floatformat:0 }}
Revenue - COGS
Net Profit
{{ business.currency }} {{ net_profit|floatformat:0 }}
After expenses

๐Ÿฆ Account Balances

{% for account in accounts %}
{{ account.name }} {{ business.currency }} {{ account.balance|floatformat:0 }} {{ account.get_account_type_display }}
{% endfor %}
Total: {{ business.currency }} {{ total_balance|floatformat:0 }}

๐Ÿ† Top Products

{% for p in top_products %} {% empty %} {% endfor %}
ProductQtyRevenue
{{ p.product__name }} {{ p.total_qty|floatformat:0 }} {{ business.currency }} {{ p.total_revenue|floatformat:0 }}
No data

๐Ÿ’ธ Expenses by Category

{% for e in expenses_by_category %} {% empty %} {% endfor %}
CategoryAmount
{{ e.category__name }} {{ business.currency }} {{ e.total|floatformat:0 }}
No expenses

๐Ÿงพ Recent Sales

View all
{% for sale in recent_sales %} {% empty %} {% endfor %}
RefCustomerTotalDate
{{ sale.reference }} {{ sale.customer_display }} {{ business.currency }} {{ sale.total|floatformat:0 }} {{ sale.date|date:"d M" }}
No sales yet

๐Ÿ’ธ Recent Expenses

View all
{% for expense in recent_expenses %} {% empty %} {% endfor %}
DescriptionCategoryAmountDate
{{ expense.description }} {{ expense.category.name }} {{ business.currency }} {{ expense.amount|floatformat:0 }} {{ expense.date|date:"d M" }}
No expenses yet
{% if low_stock_products %}

โš  Low Stock Alert

{% for product in low_stock_products %} {{ product.name }} โ€” {{ product.stock_quantity }} {{ product.unit }} {% endfor %}
{% endif %} {% if expired_batches or expiring_soon_batches %}

โฐ Expiry Alerts

{% if expired_batches %}
Expired Batches
{% for batch in expired_batches %} {{ batch.product.name }} ({{ batch.batch_number }}) - {{ batch.expiry_date }} {% endfor %}
{% endif %} {% if expiring_soon_batches %}
Expiring Within 30 Days
{% for batch in expiring_soon_batches %} {{ batch.product.name }} ({{ batch.batch_number }}) - {{ batch.expiry_date }} {% endfor %}
{% endif %}
{% endif %} {% if overstock_products %}

๐Ÿ“ฆ Overstock Alerts

{% for product in overstock_products %} {{ product.name }} โ€” {{ product.stock_quantity }} {{ product.unit }} {% endfor %}
{% endif %} {% if pending_supplier_payments %}

๐Ÿญ Pending Supplier Payments

{% for po in pending_supplier_payments %} {% endfor %}
PO Supplier Due Date Balance
{{ po.reference }} {{ po.supplier.name }} {% if po.due_date %}{{ po.due_date }}{% else %}โ€”{% endif %} {% if po.due_date and po.due_date < today %} Overdue {% endif %} {{ business.currency }} {{ po.balance_due|floatformat:0 }}
{% endif %} {% endblock %}