---
title: tm.ticketlayouttemplate
slug: db/tmticketlayouttemplate
createdAt: 2023-12-14T14:10:58.343Z
---

A ticket layout template belongs to a [ticket layout](docId\:Kgu8nQ4ojYzF-QsWse55j) and defines the ticket layout in the context of one or more Delivery scenarios and consists of a html template and css classes.

## Fields

| FIELD             | TYPE                           | DESCRIPTION                                                                  |
| ----------------- | ------------------------------ | ---------------------------------------------------------------------------- |
| id                | `int`                          | Unique ID                                                                    |
| typeid            | `int`                          | Type ID<br />**References:** [tm.ticketlayout](docId\:Kgu8nQ4ojYzF-QsWse55j) |
| name              | `string`                       | Name for the ticket layout template                                          |
| htmltemplate      | `string`                       | HTML template containing the definition for the ticket layout template       |
| ticketsperpage    | `int`                          | Number of tickets to be printed per page                                     |
| css               | `string`                       | Css classes for the ticket layout template                                   |
| translations      | `map[k:string t:map v:string]` | Translations for the ticket layout template                                  |
| deliveryscenarios | `[int]`                        | Deliveryscenario's for which this ticket layout template will be used        |
| createdts         | `timestamp`                    | Created timestamp                                                            |
| lastupdatets      | `timestamp`                    | Last updated timestamp                                                       |
| isarchived        | `bool`                         | Whether or not this item is archived                                         |

