| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- {% extends "base/base.html" %}
- {% block content %}
- <div class="card mb-3">
- <div class="card-body">
- <h5 class="card-title">Rechnung {{ forderung.rechnungsnummer }}</h5>
- <p>Kunde: {{ forderung.kunde.name if forderung.kunde else '' }}</p>
- <p>Betrag: {{ forderung.betrag }}</p>
- <p>Fälligkeit: {{ forderung.faelligkeit }}</p>
- <div class="mt-3">
- <a class="btn btn-outline-secondary me-2" href="/detail/{{ forderung.id }}/export/docx">Export DOCX</a>
- <a class="btn btn-outline-primary" href="mailto:?subject=Rechnung%20{{ forderung.rechnungsnummer }}&body=Sie%20finden%20Details%20unter%20{{ request.url }}">E-Mail (mailto)</a>
- </div>
- </div>
- </div>
- <div class="card">
- <div class="card-body">
- <h6>Neue Bemerkung</h6>
- <form method="post" action="/detail/{{ forderung.id }}/bemerkung">
- <div class="mb-2">
- <textarea name="bemerkung" class="form-control" rows="3"></textarea>
- </div>
- <div class="mb-2">
- <label>Wiedervorlage</label>
- <input type="date" name="wiedervorlage_datum" class="form-control" />
- </div>
- <button class="btn btn-primary" type="submit">Speichern</button>
- <a class="btn btn-secondary ms-2" href="/forderungen">Zurück</a>
- </form>
- </div>
- </div>
- {% if forderung.bemerkungen %}
- <div class="mt-3">
- <h5>Bemerkungen</h5>
- <ul class="list-group">
- {% for b in forderung.bemerkungen %}
- <li class="list-group-item">{{ b.zeitstempel }} - {{ b.benutzer }}: {{ b.bemerkung }} {% if b.wiedervorlage_datum %} (WV: {{ b.wiedervorlage_datum }}){% endif %}</li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- <h2>Forderung Details</h2>
- <table class="table table-striped">
- <tbody>
- {% for row in forderung_kopf %}
-
- {% for value in row %}
- <tr>
- <th>{{ loop.index }}</th>
- <td>{{ value }}</td>
- </tr>
- {% endfor %}
- {% endfor %}
- </tbody>
- </table>
- <h2>Kommentare</h2>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Timestamp</th>
- <th>Name</th>
- <th>Rolle</th>
- <th>Begründung</th>
- <th>Wiedervorlage</th>
- <th>Kommentar</th>
- </tr>
- </thead>
- <tbody>
- {% for row in forderung_kommentar %}
- <tr>
- <td>{{ row.Timestamp|date_format }}</td>
- <td>{{ row.Name }}</td>
- <td>{{ row.Rolle }}</td>
- <td>{{ row.Begründung }}</td>
- <td>{{ row.Wiedervorlage }}</td>
- <td>{{ row.Kommentar }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <h2>Mahnungen</h2>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Kunde_Nr</th>
- <th>Mahnung_Nr</th>
- <th>Mahndatum</th>
- <th>Mahnstufe</th>
- <th>Rechnung_Nr</th>
- <th>Rechnung_Datum</th>
- <th>Betrag</th>
- <th>Offen</th>
- </tr>
- </thead>
- <tbody>
- {% for row in forderung_mahnung %}
- <tr>
- <td>{{ row.Kunde_Nr }}</td>
- <td>{{ row.Mahnung_Nr }}</td>
- <td>{{ row.Mahndatum|date_format }}</td>
- <td>{{ row.Rechnung_Nr }}</td>
- <td>{{ row.Rechnung_Datum|date_format }}</td>
- <td>{{ row.Betrag|number_format }}</td>
- <td>{{ row.Offen|number_format }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- <h2>Auftragspositionen</h2>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Auftrag_Nr</th>
- <th>Auftrag_Position</th>
- <th>Betrag</th>
- </tr>
- </thead>
- <tbody>
- {% for row in auftrag_positionen %}
- <tr>
- <td>{{ row.Auftrag_Nr }}</td>
- <td>{{ row.Auftrag_Position }}</td>
- <td>{{ row.Betrag|number_format }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- {% endblock %}
|