{% extends 'base.html' %} {% block title %}Profit & Loss Report - Politory{% endblock %} {% block content %}

Profit & Loss Report

Financial Performance Report
Print Report
TOTAL SALES Rs. {{ total_sales|floatformat:2 }}
COST OF GOODS SOLD Rs. {{ total_cogs|floatformat:2 }}
TOTAL EXPENSES Rs. {{ total_expenses|floatformat:2 }}
NET PROFIT / LOSS Rs. {{ net_profit|floatformat:2 }}
Profit & Loss Statement
{% if net_profit >= 0 %}Profit{% else %}Loss{% endif %}
{% for expense in expense_rows %} {% empty %} {% endfor %}
Particulars Amount (Rs.)
Total Sales (Dr) {{ total_sales|floatformat:2 }}
Total Purchase (Cr) {{ total_cogs|floatformat:2 }}
Gross Profit {{ gross_profit|floatformat:2 }}
Operating Expenses
{{ expense.name }} {{ expense.amount|floatformat:2 }}
No Expenses 0.00
Total Operating Expenses {{ total_expenses|floatformat:2 }}
NET PROFIT / LOSS {{ net_profit|floatformat:2 }}
Mortality Report
Weight: {{ total_mortality_weight|floatformat:2 }} {{ mortality|length }} Records
{% for row in mortality %} {% empty %} {% endfor %}
# Date Purchase # Vehicle Weight Rate Amount
{{ forloop.counter }} {{ row.entry_date|date:"d-m-Y" }} {{ row.purchase_no|default:"-" }} {{ row.vehicle_number|default:"-" }} {{ row.weight|default:"0" }} kg Rs. {{ row.rate|default:"0" }} Rs. {{ row.amount|default:"0" }}
No mortality records found for selected date range.
TOTAL {{ total_mortality_weight|floatformat:2 }} kg Rs. {{ total_mortality_amount|floatformat:2 }}
{% endblock %}