# InventoryItemStockTotals

Audience: Programmer

An item's stock totals.

An item's stock totals. Current means the same as in itemstocks: the highest
version per repository, a deleted head hides its pair, rows whose stock values
are all zero do not count.

## Services

| Service | Key | Implements |
| --- | --- | --- |
| [inventory](https://docs.pyck.cloud/latest/api/services/inventory.md) | value type |  |

## Fields

| Name | Type | Arguments | Description | Served by | Deprecated |
| --- | --- | --- | --- | --- | --- |
| `quantity` | [Int64](https://docs.pyck.cloud/latest/api/scalars/int64.md)! |  | Sum of quantity over the current rows at non-virtual root repositories. A<br>root's quantity is the rollup of its whole subtree, so this counts every<br>unit the item holds in physical repositories once. | [inventory](https://docs.pyck.cloud/latest/api/services/inventory.md) |  |
| `lastChangedAt` | [Time](https://docs.pyck.cloud/latest/api/scalars/time.md) |  | Latest createdAt over all current rows, virtual repositories included; null when the item has none. | [inventory](https://docs.pyck.cloud/latest/api/services/inventory.md) |  |
