{% extends 'base.html' %} {% block title %}Profit Reports{% endblock %} {% block content %}

Profit & Sales Statement

{{ label }}
Export CSV Export PDF
{% include 'partials/scope_banner.html' %}
Net Sales

{{ ts|floatformat:2 }}

COGS

{{ cogs|floatformat:2 }}

Gross Profit

{{ gp|floatformat:2 }}

Expenses

{{ te|floatformat:2 }}

Salaries Paid

{{ salaries|floatformat:2 }}

Net Profit

{{ np|floatformat:2 }}

Sales Invoices

{{ tsc }}

Revenue & Gross Profit Trend
{% if branch_rows %}
Branch-wise Summary
{% for r in branch_rows %} {% endfor %}
BranchInvoicesNet SalesCOGSGross ProfitExpensesSalariesNet Profit
{{ r.branch.name }} {{ r.invoices }} {{ r.revenue|floatformat:2 }} {{ r.cogs|floatformat:2 }} {{ r.gross|floatformat:2 }} {{ r.expenses|floatformat:2 }} {{ r.salaries|floatformat:2 }} {{ r.net|floatformat:2 }}
{% endif %}
Profit by Brand
{% for row in brand_rows %} {% empty %} {% endfor %}
Brand Qty Revenue Cost Profit
{{ row.key }} {{ row.quantity|floatformat:"0" }} {{ row.revenue|floatformat:2 }} {{ row.cost|floatformat:2 }} {{ row.profit|floatformat:2 }}
No sales in this period.
Profit by Category
{% for row in category_rows %} {% empty %} {% endfor %}
Category Qty Revenue Cost Profit
{{ row.key }} {{ row.quantity|floatformat:"0" }} {{ row.revenue|floatformat:2 }} {{ row.cost|floatformat:2 }} {{ row.profit|floatformat:2 }}
No sales in this period.
Product-wise Profit Statement
Buy price is the historical cost captured at the time of sale. Sell price is the weighted average actual selling price.
{% for row in product_rows %} {% empty %} {% endfor %}
Product Brand Qty Avg Buy Price Avg Sell Price Revenue COGS Profit
{{ row.product_name }} {{ row.brand_name }} {{ row.quantity|floatformat:"0" }} {{ row.avg_buy_price|floatformat:2 }} {{ row.avg_sell_price|floatformat:2 }} {{ row.revenue|floatformat:2 }} {{ row.cost|floatformat:2 }} {{ row.profit|floatformat:2 }}
No sales in this period.
Recent Sales
{% for s in rs %} {% empty %} {% endfor %}
InvoiceCustomerDateNet Amount
{{ s.invoice_number }} {{ s.customer.name|default:"Walk-in" }} {{ s.date }} {{ s.net_amount|floatformat:2 }}
No sales in this period.
{% endblock %} {% block extra_js %} {% endblock %}