{% extends 'ssmain/base.html' %} {# Society Self-Service Copyright © 2018–2020 Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% block title %}{{ revision.name }}{% endblock %} {% block content %}

{{ revision.name }}

Status: {{ revision.get_state_display() }} {% if not is_latest %}

You are printing an older version of this budget.

{% endif %}
ID BU-{{ revision.budget.id }}
Title {{ revision.name }}
Due date {{ revision.date or '' }}
Event details {% if revision.event_dt %}{{ localtime(revision.event_dt) }}.{% endif %} {% if revision.event_attendees %}{{ revision.event_attendees }} attendees.{% endif %} {% if not revision.event_dt and not revision.event_attendees %}N/A{% endif %}
Contributors
Comments {{ revision.comments|markdown }}
Revenue
{% if revision.revenue_comments %}
Revenue comments
{{ revision.revenue_comments|markdown }}
{% endif %}
Expenses {% if revision.expense_no_emergency_fund %}

No emergency fund required (please add a comment explaining why)

{% endif %}
{% if revision.expense_comments %}
Expense comments
{{ revision.expense_comments|markdown }}
{% endif %}
Total Profit (Loss) {{ '${:.2f}'.format(revision.get_revenue_total() - revision.get_expense_total()) if revision.get_revenue_total() >= revision.get_expense_total() else '(${:.2f})'.format(revision.get_expense_total() - revision.get_revenue_total()) }}
{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block script %} {{ super() }} {% endblock %}