{% extends "base.html" %} {% block title %}Rechnungen Element - {{ APP_VERSION }}{% endblock %} {% block content %}

Rechnungshistorie pro Element

Element: {{ item.name or '—' }} Code: {{ item.code or '—' }} Autor: {{ item.author or '—' }} ISBN: {{ item.isbn or '—' }}
{% if invoices %} {% for row in invoices %} {% endfor %}
Rechnung Betrag Ausleihe Status Schaden Aktion
{{ row.invoice_number or '—' }}
erstellt {{ row.invoice_created_at or '—' }}
{% if row.invoice_created_by %}
von {{ row.invoice_created_by }}
{% endif %}
{{ row.invoice_amount }}
{{ row.borrow_user or '—' }}
{{ row.borrow_start or '' }}{% if row.borrow_end %} bis {{ row.borrow_end }}{% endif %}
{% if row.borrow_status == 'active' %} Aktiv {% elif row.borrow_status == 'planned' %} Geplant {% else %} Abgeschlossen {% endif %}
{% if row.invoice_paid %} Bezahlt {% if row.invoice_paid_at %}
am {{ row.invoice_paid_at }}
{% endif %} {% if row.invoice_paid_by %}
durch {{ row.invoice_paid_by }}
{% endif %} {% else %} Offen {% endif %}
{{ row.invoice_reason or 'Keine Beschreibung' }}
PDF öffnen
{% else %}
Für dieses Element wurden noch keine Rechnungen gespeichert.
{% endif %}
{% endblock %}