---
title: tm.saleslogitem
slug: db/tmsaleslogitem
createdAt: 2023-12-14T14:11:45.162Z
---

A saleslogitem links an amount paid for an order to an individual item that was sold. Each saleslogitem belongs to a single [saleslog](docId\:LQr90Y--R48izmXXvaUGm)

## Fields

| FIELD             | TYPE      | DESCRIPTION                                                                                                               |
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- |
| id                | `int`     | ID                                                                                                                        |
| saleslogid        | `int`     | Link to the sales transaction<br />**References:** [tm.saleslog](docId\:LQr90Y--R48izmXXvaUGm)                            |
| typeid            | `int`     | Type of the saleslog item. Possible values are: Ticket (1), Ticket fee (2), Order fee (5), Temp (0)                       |
| amount            | `int`     | Number of items                                                                                                           |
| price             | `decimal` | Unit price                                                                                                                |
| totalvalue        | `decimal` | Total value for this item                                                                                                 |
| ticketid          | `int`     | Link to the ticket (if type = 1)<br />**References:** [tm.ticket](docId\:Ng_G3ImT5NlU1CH0cq7BG)                           |
| tickettypepriceid | `int`     | Link to the applied tickettypeprice (if type = 1)<br />**References:** [tm.tickettypeprice](docId\:RSAx5uGwV3f7IjEGSonor) |
| saleschannelid    | `int`     | Link to the saleschannel<br />**References:** [tm.saleschannel](docId\:pUqmzWY-Lt3Yr5oUGFnEO)                             |
| orderfeeid        | `int`     | Link to the order fee (if type = 5)<br />**References:** [tm.orderfee](docId:8qXTShZzXdgVK1ag5jDzI)                       |
| orderproductid    | `int`     | Link to the orderproduct (if type = 6)                                                                                    |
| productid         | `int`     | Link to the product (if type = 6)                                                                                         |

