Seitenlayout: Dieses Template ist für das Layout A4 Hochformat (Paged) optimiert. Beim Laden über “Beispiel-Template laden” wird das Layout automatisch gesetzt. Das Template nutzt Paged.js für automatische Seitenpaginierung.

Übersicht der Ticketverkäufe eines Events mit VVK-Stellen, Kategorien, Preisen, Kontingenten und Verkaufszahlen.

Informationen aus co*pilot

  • Event-Name, Datum, Spielort
  • Ticketing-Daten: VVK-Stelle, Kategorie, Ticketpreis (brutto), Kontingent, Anzahl verkauft, Gesamtumsatz

Template

  <style>
    h1 { font-family: Ubuntu; text-decoration: none; }
    body, h2, h3, h4, p, th, td { font-family: Ubuntu; }

    table {
        table-layout: fixed;
        width: 550px;
        border-spacing: 0px;
        border-collapse: separate;
    }
    td, th {
        text-align: left;
        border-bottom: 1px solid black;
        padding: 5px 10px;
        vertical-align: top;
    }
</style>

{{#each events}}

<h1>Verkäufe</h1>
Event: {{this.name}} | {{ formatDate this.start "P" }}<br />
Location: {{this.displayNames.locationsWithRooms}}<br />

{{#if this.ticketing}}
<h2>Tickets</h2>

<table>
    <thead>
        <tr>
            <th>VVK-Stelle</th>
            <th>Kategory</th>
            <th>Ticketpreis (brutto)</th>
            <th>Kontingent</th>
            <th>Anzahl</th>
            <th>Gesamt</th>
        </tr>
    </thead>
    <tbody>
        {{#each this.ticketing}}
        <tr>
            <td>{{ this.ticketOffice }}</td>
            <td>{{ this.category }}</td>
            <td>{{ formatEuro this.grossPrice }}</td>
            <td>{{ this.contingent }}</td>
            <td>{{ this.soldTickets }}</td>
            <td>{{ formatEuro this.saleTotal }}</td>
        </tr>
        {{/each}}
        <tr>
            <th>Summe</th>
            <th></th>
            <th></th>
            <th>{{ sumBy this.ticketing "contingent" }}</th>
            <th>{{ sumBy this.ticketing "soldTickets" }}</th>
            <th>{{ formatEuro (sumBy this.ticketing "saleTotal" ) }}</th>
        </tr>
    </tbody>
</table>

{{/if}}
{{/each}}