{% extends 'base.html' %} {% block title %} Income and Expenditure {% endblock %} {% block extra_css %} {% endblock %} {% block header %} INCOME AND EXPENDITURE of {{ today }} {% endblock %} {% block content %}
Printed by {{ user.username }}

Details Amount

Total Soda Sold {{ total_soda_sold }}
Total Water Sold {{ total_water_sold }}
Soda In Store {{ store.soda_store }}
Water In Store {{ store.water_store }}

TODAY'S TRANSACTIONS ({{ today }})

{% for t in transactions %} {% empty %} {% endfor %}
User Soda Sold Water Sold Car Amount Time
{{ t.user.username }} {{ t.soda_amount }} {{ t.water_amount }} {{ t.car_id }} {{ t.total_price }} {{ t.created_at|time:'H:i' }}
No transactions today

INCOME

Collected Cash {{ total_price }} Tsh

EXPENDITURE

{% for expences in exp %} {% empty %} {% endfor %}
Type Information Amount Approved By Date
{{ expences.expend_type }} {{ expences.info }} {{ expences.value_amount }} {{ expences.approved_by }} {{ expences.created_on }}
No expenses today
Total Expenditure {{ total_expenditure }} Tsh
{{ total_price }} - {{ total_expenditure }} = {{ cash_amount }} Tsh

# CASH AMOUNT: {{ cash_amount }} Tsh

{% endblock %}