Vermietungs-Tool
A local web app for a small room-rental business in Austria: guest register, room ledger, occupancy plan, invoices, the monthly tourist-tax report and the quarterly VAT list. Application code only; it ships no data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
45424e6fd6
47 files changed
+6701
No files matched your search
@@ -0,0 +1,65 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>{{ t('vat_title') }} – {{ t('vat_quarter_n', n=quarter) }} {{ year }}</h1>
|
||||
<p class="lead">{{ unit_name }} · {{ r.first|date }} – {{ r.last|date }}</p>
|
||||
<p class="noprint">{{ t('vat_intro') }}</p>
|
||||
|
||||
<form method="get" class="toolbar">
|
||||
<select name="unit" onchange="this.form.submit()">
|
||||
{% for u in units %}<option value="{{ u.code }}"{% if u.code == unit %} selected{% endif %}>{{ u.name }}</option>{% endfor %}
|
||||
</select>
|
||||
<select name="q" onchange="this.form.submit()">
|
||||
{% for n in range(1, 5) %}<option value="{{ n }}"{% if n == quarter %} selected{% endif %}>{{ t('vat_quarter_n', n=n) }}</option>{% endfor %}
|
||||
</select>
|
||||
<select name="year" onchange="this.form.submit()">
|
||||
{% for y in years %}<option{% if y == year %} selected{% endif %}>{{ y }}</option>{% endfor %}
|
||||
</select>
|
||||
<button type="button" class="btn secondary" onclick="window.print()">{{ t('btn_print') }}</button>
|
||||
</form>
|
||||
|
||||
{% for s in r.sections %}
|
||||
<section class="vat-room">
|
||||
<h2>{{ t('col_room') }} {{ s.room }}</h2>
|
||||
<div class="tablewrap">
|
||||
<table>
|
||||
<thead><tr>
|
||||
<th>{{ t('col_paid_date') }}</th><th>{{ t('col_occupant') }}</th><th>{{ t('col_period') }}</th>
|
||||
<th>{{ t('hd_invoice') }}</th><th>{{ t('col_payer') }}</th><th class="num">{{ t('col_amount') }}</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
{% for x in s.rows %}
|
||||
<tr>
|
||||
<td>{{ x.received_on|date }}</td>
|
||||
<td>{{ x.occupant or '' }}
|
||||
{%- if x.storno %} <span class="pill cash">{{ t('vat_storno') }}</span>{% endif %}
|
||||
{%- if x.received < x.amount %} <span class="pill open">{{ t('vat_part') }}</span>{% endif %}</td>
|
||||
{#- a monthly rent may carry only a 'bis' #}
|
||||
<td>{% if x.period_from and x.period_to %}{{ x.period_from|date }}–{{ x.period_to|date }}
|
||||
{%- elif x.period_to %}{{ t('period_until', date=x.period_to|date) }}
|
||||
{%- elif x.period_from %}{{ t('period_since', date=x.period_from|date) }}{% endif %}</td>
|
||||
<td>{{ x.invoice_no or '' }}</td><td>{{ x.payer or '' }}</td>
|
||||
<td class="num">{{ x.received|euro }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot><tr><td colspan="5">{{ t('vat_room_sum', room=s.room) }}</td><td class="num">{{ s.sum|euro }}</td></tr></tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
{% else %}
|
||||
<p class="empty">{{ t('vat_empty') }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{% if r.sections %}
|
||||
<section class="vat-total">
|
||||
<h2>{{ t('vat_total_title') }}</h2>
|
||||
<table>
|
||||
<tr><td>{{ t('vat_total') }}</td><td class="num">{{ r.total|euro }}</td></tr>
|
||||
{% if r.storno %}<tr><td>{{ t('vat_storno_sum') }}</td><td class="num">− {{ r.storno|euro }}</td></tr>{% endif %}
|
||||
<tr class="key"><td>{{ t('vat_gross') }}</td><td class="num">{{ r.gross|euro }}</td></tr>
|
||||
<tr class="key"><td>{{ t('vat_tax') }}</td><td class="num">{{ r.vat|euro }}</td></tr>
|
||||
<tr class="key"><td>{{ t('vat_net') }}</td><td class="num">{{ r.net|euro }}</td></tr>
|
||||
</table>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user