{% 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 }})
| User |
Soda Sold |
Water Sold |
Car |
Amount |
Time |
{% for t in transactions %}
| {{ t.user.username }} |
{{ t.soda_amount }} |
{{ t.water_amount }} |
{{ t.car_id }} |
{{ t.total_price }} |
{{ t.created_at|time:'H:i' }} |
{% empty %}
| No transactions today |
{% endfor %}
INCOME
| Collected Cash |
{{ total_price }} Tsh |
EXPENDITURE
| Type |
Information |
Amount |
Approved By |
Date |
{% for expences in exp %}
| {{ expences.expend_type }} |
{{ expences.info }} |
{{ expences.value_amount }} |
{{ expences.approved_by }} |
{{ expences.created_on }} |
{% empty %}
| No expenses today |
{% endfor %}
| Total Expenditure |
{{ total_expenditure }} Tsh |
{{ total_price }} - {{ total_expenditure }} = {{ cash_amount }} Tsh
# CASH AMOUNT: {{ cash_amount }} Tsh
{% endblock %}