# InventoryItemStockTotals

Audience: Developer

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 |
| --- | --- |
| [inventory](https://docs.pyck.cloud/dev/api/services/inventory.md) | value type |

## Fields

**Served by:** [inventory](https://docs.pyck.cloud/dev/api/services/inventory.md)

| Name | Type | Description |
| --- | --- | --- |
| `quantity` | [Int64](https://docs.pyck.cloud/dev/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. |
| `lastChangedAt` | [Time](https://docs.pyck.cloud/dev/api/scalars/time.md) | Latest createdAt over all current rows, virtual repositories included; null when the item has none. |
