# StockLevel4ItemsByStockID: Horeko Stocklist Level 4 Items by Stocklist ID Returns details for one stocklist ItemType: 0=Category, 1=Subrecipe, 2=Ingredient. ItemUnit: 0=Kilo, 1=Liter, 2=Piece This is a read-only table function. The Horeko API may not support modifying the data, or the Invantive UniversalSQL driver for Horeko does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Horeko API. - Catalog: `Horeko` - Schema: `Stock` - Label: Stocklist Level 4 Items by Stocklist ID ## Parameters of Table Function | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `id` | `int32` | ☑ | | | ## Columns The columns of the table `StockLevel4ItemsByStockID` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `CountDate` | `datetime` | Count Date | ☐ | | | `CountedAmountByContent_2` | `double` | | ☐ | | | `CountedAmountByContent_3` | `double` | | ☐ | | | `CountedAmountByContent_4` | `double` | | ☐ | | | `CountedAmountByContent` | `double` | | ☐ | | | `CountedAmountByItem_2` | `double` | | ☐ | | | `CountedAmountByItem_3` | `double` | | ☐ | | | `CountedAmountByItem_4` | `double` | | ☐ | | | `CountedAmountByItem` | `double` | | ☐ | | | `CountedAmountByPackage_2` | `double` | | ☐ | | | `CountedAmountByPackage_3` | `double` | | ☐ | | | `CountedAmountByPackage_4` | `double` | | ☐ | | | `CountedAmountByPackage` | `double` | | ☐ | | | `CountedBy` | `int32` | Counted by | ☐ | | | `CountedValue_2` | `double` | | ☐ | | | `CountedValue_3` | `double` | | ☐ | | | `CountedValue_4` | `double` | | ☐ | | | `CountedValue` | `double` | Counted (value) | ☐ | | | `Description` | `string` | Description | ☐ | | | `ItemId_2` | `int32` | | ☐ | | | `ItemId_3` | `int32` | | ☐ | | | `ItemId_4` | `int32` | | ☐ | | | `ItemId` | `int32` | Item ID | ☐ | | | `ItemName_2` | `string` | | ☐ | | | `ItemName_3` | `string` | | ☐ | | | `ItemName_4` | `string` | | ☐ | | | `ItemName` | `string` | Item Name | ☐ | | | `ItemType_2` | `int32` | | ☐ | | | `ItemType_3` | `int32` | | ☐ | | | `ItemType_4` | `int32` | | ☐ | | | `ItemType` | `int32` | Item Type | ☐ | | | `ItemUnit_2` | `int32` | | ☐ | | | `ItemUnit_3` | `int32` | | ☐ | | | `ItemUnit_4` | `int32` | | ☐ | | | `ItemUnit` | `int32` | Item Unit | ☐ | | | `LocationId` | `int32` | Location ID | ☐ | | | `Name` | `string` | Name | ☐ | | | `TotalKilo` | `double` | Total (kg) | ☐ | | | `TotalLiter` | `double` | Total (litres) | ☐ | | | `TotalPiece` | `double` | Total (pieces) | ☐ | | | `TotalValue` | `double` | Total (value) | ☐ | |