{% extends "base.html" %} {% block title %}{{ room.room_number }}{% endblock %} {% block page_title %}Room {{ room.room_number }}{% endblock %} {% block content %}
Room Info Edit
Room Number
{{ room.room_number }}
House
{{ room.house.house_number }}
Rent/Month
{% if room.rent_per_month %}TSh {{ room.rent_per_month|floatformat:0 }}{% else %}Not set{% endif %}
Season
{{ room.get_season_display }}
Status
{% if room.is_occupied %} Occupied {% else %} Vacant {% endif %}
{% if room.current_user_name %}
Tenant
{{ room.current_user_name }}
Phone
{{ room.current_user_phone|default:"—" }}
{% endif %}
Total Paid
TSh {{ total_paid|floatformat:0 }}
Record Rent Payment {% if not room.rent_per_month %} Set rent first {% endif %}
{% if room.rent_per_month %} Record New Payment

Rent: TSh {{ room.rent_per_month|floatformat:0 }}/month. Allowed periods: 3, 4, 6, or 12 months.

{% else %} Edit Room to Set Rent {% endif %}
Payment History
{% for payment in payments %} {% empty %} {% endfor %} {% if payments %} {% endif %}
Year Period Months Paid Tenant Date Recorded Amount
{{ payment.year }} {{ payment.payment_period }} months {{ payment.get_months_display }} {{ payment.tenant_name|default:"—" }} {{ payment.payment_date|date:"d M Y" }} TSh {{ payment.total_amount|floatformat:0 }}
No payments recorded yet.
Total: TSh {{ total_paid|floatformat:0 }}
Back to House
{% endblock %}