Zum Inhalt springen

Vorlage:BookingsList: Unterschied zwischen den Versionen

Aus WeihnachtsRechnungen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 12: Zeile 12:
     {{#if:  
     {{#if:  
       {{#cargo_query: tables=bookings | fields=COUNT(*)
       {{#cargo_query: tables=bookings | fields=COUNT(*)
         | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Einnahme" | no html }}
         | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Einnahme" | no html | format=num }}
       | {{#cargo_query: tables=bookings | fields=COUNT(*)
       | {{#cargo_query: tables=bookings | fields=COUNT(*)
           | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Einnahme" | no html | format=num }}
           | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Einnahme" | no html | format=num }}
Zeile 20: Zeile 20:
     {{#if:  
     {{#if:  
       {{#cargo_query: tables=bookings | fields=COUNT(*)
       {{#cargo_query: tables=bookings | fields=COUNT(*)
         | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Ausgabe" | no html }}
         | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Ausgabe" | no html | format=num }}
       | {{#cargo_query: tables=bookings | fields=COUNT(*)
       | {{#cargo_query: tables=bookings | fields=COUNT(*)
           | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Ausgabe" | no html | format=num }}
           | where={{#if:{{{pick|}}} | {{{pick}}} AND }} itemtype="Ausgabe" | no html | format=num }}

Version vom 8. November 2025, 10:46 Uhr

Vorlage:BookingsList
   Aufzurufen mit {{BookingsList|pick=Auswahl}} 
                      Auswahl wie für das "Where" im SQL, resp. cargo_query. z.Bsp.: pick=pageNbr="001r"
                      falls nötig, kann in der Entwicklung ein Zusatz-Parameter "|Test" angehängt werden.
   
   - Liste mit getrennten Total-Zeilen für Einahmen und Ausgaben sofern in der Auswahl (pick) vrhanden 
     und einem Total, falls Ein- und Ausgaben worhanden.
   - Liste aller Buchungen der Auswahl 
Auswahl der Buchungen: Keine Auswahl definiert / Alle
Test-Parameter: ohne

Anzahl der in der Auswahl definierten Einnahme-Records:

Cannot access the database: :real_connect(): (HY000/1226): User 'ch66043_Ernst' has exceeded the 'max_user_connections' resource (current value: 10)

Anzahl der in der Auswahl definierten Ausgabe-Records:

Cannot access the database: :real_connect(): (HY000/1226): User 'ch66043_Ernst' has exceeded the 'max_user_connections' resource (current value: 10)

Fehler im Ausdruck: Unerwarteter Operator <