{% extends "base.html" %} {% block content %}
No expense data available
Add Expenses| 🏷️ Category | 💸 Total Amount | 📊 Percentage |
|---|---|---|
| {{ expense.category }} | AED {{ "{:,.2f}".format(expense.total_amount or 0) }} |
{% if total_expense_sum > 0 %}
{% set percentage = (expense.total_amount / total_expense_sum * 100) %}
|
| 📦 Product | 🛒 Total Sold | 💰 Total Revenue | 💸 Total Cost | 💵 Profit | 📈 Margin |
|---|---|---|---|---|---|
| {{ product.product_name }} | {{ product.total_sold }} | AED {{ "{:,.2f}".format(product.total_revenue or 0) }} | AED {{ "{:,.2f}".format(product.total_cost or 0) }} | AED {{ "{:,.2f}".format(product.profit or 0) }} | {% if product.total_revenue and product.total_cost and product.total_cost > 0 %} {% set margin = ((product.total_revenue - product.total_cost) / product.total_cost * 100) %} {{ "%.1f"|format(margin) }}% {% elif product.total_revenue and product.total_cost == 0 %} N/A {% else %} 0.0% {% endif %} |