{% extends "include/_base.twig" %} {% set title = "Buchungen" %} {% set auth = true %} {% block content %}
Startseite |  {{title}}
{% if urlParam['sort'] is null %} {% set sort = "date" %} {% else %} {% set sort = urlParam['sort'] %} {% endif %} {% if (urlParam['desc'] is null or urlParam['desc'] == "desc") %} {% set order = sort ~ " desc" %} {% set desc = "asc" %} {% set isDesc = "desc" %} {% else %} {% set order = sort ~ " asc" %} {% set desc = "desc" %} {% set isDesc = "asc" %} {% endif %} {% if urlParam['fromDate'] is not null %} {% set fromDate = urlParam['fromDate'] %} {% endif %} {% if urlParam['toDate'] is not null %} {% set toDate = urlParam['toDate'] %} {% endif %} {% if urlParam['entries'] is not null %} {% set entries = urlParam['entries'] %} {% else %} {% set entries = "50" %} {% endif %} {% if toDate and fromDate %} {% set where = "buchung.date >= '" ~ fromDate ~ "' and buchung.date <= '" ~ toDate ~ "'" %} {% elseif toDate and not fromDate %} {% set where = "buchung.date <= '" ~ toDate ~ "'" %} {% elseif not toDate and fromDate %} {% set where = "buchung.date >= '" ~ fromDate ~ "'" %} {% endif %} {% set maxPage = 'maxPage'|main(order=order, where=where, entries=entries) %} {% if (urlParam['page'] is null or urlParam['page'] <= "1" ) %} {% set previewPage = "1" %} {% set nextPage = "2" %} {% set currentPage = "1" %} {% set page = "0" %} {% else %} {% if urlParam['page'] > maxPage %} {% set previewPage = maxPage-1 %} {% set nextPage = maxPage %} {% set currentPage = maxPage %} {% set page = previewPage %} {% else %} {% set previewPage = urlParam['page']-1 %} {% set nextPage = urlParam['page']+1 %} {% set currentPage = urlParam['page'] %} {% set page = urlParam['page']-1 %} {% endif %} {% endif %}
 

Buchungsübersicht

Neue Buchung anlegen
alle Filter löschen
{% set buchungen = 'buchungen'|main(order=order, page=page, where=where, entries=entries) %} {% for item in buchungen %} {% endfor %}
Datum Wert Konto Verwendungszweck Wertstellung Fix  
{{ item.date|date("d.m.Y") }} {{ (item.value)|number_format(2, '.', ',') }} € {{ item.konto }} {{ item.verwendung }} {{ item.wertstellung }} {% if item.fixed == 0 %} Nein {% else %} Ja {% endif %} edit delete
{% if currentPage > "1" %} Vorherige Seite {% if currentPage < maxPage %}  |  {% endif %} {% endif %} {% if currentPage < maxPage %} Nächste Seite {% endif %}
Seite {{currentPage}} von {{maxPage}}
{% endblock %}