> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Inventory adjustments

> Every change to stock and why: corrections, damage, receiving and orders, by reason, stock state and location.

Every change to stock and why: corrections, damage, receiving and orders, by reason, stock state and location.

## Example

```sql theme={null}
FROM inventory_adjustment_history
  SHOW inventory_adjustment_change, inventory_adjustment_count
  GROUP BY product_title
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY inventory_adjustment_change DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `inventory_adjustment_change` | Number | The net quantity added or removed by inventory adjustments. |
| `inventory_adjustment_count` | Number | The number of inventory adjustments where the quantity changed. |

## Dimensions

| Dimension | Description |
| - | - |
| `product_title` | Product title (variants roll up). |
| `product_variant_title` | Product variant: splits a product into its variants. |
| `product_variant_sku` | Variant SKU. |
| `product_vendor` | Product vendor. |
| `product_type` | Shopify product type. |
| `inventory_change_reason` | Why the quantity changed, such as correction, received, damaged or an order. |
| `inventory_state` | The stock state adjusted, such as available, committed, reserved or incoming. |
| `reference_document_type` | The kind of record behind the change, such as an order or a transfer. |
| `reference_document_uri` | The document behind the change, such as an order or a transfer. |
| `inventory_app_name` | The app that made the change. |
| `staff_member_name` | The staff member who made the change. |
| `inventory_location_name` | The location whose stock changed. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `reference_document_type` | Text | The kind of record behind the change, such as an order or a transfer. |
| `reference_document_uri` | Text | The document behind the change, such as an order or a transfer. |
| `inventory_app_name` | Text | The app that made the change. |
| `staff_member_name` | Text | The staff member who made the change. |
| `product_title` | Text | Product title. |
| `product_variant_sku` | Text | Variant SKU. |
| `product_vendor` | Text | Product vendor. |
| `product_type` | Text | Shopify product type. |
| `inventory_change_reason` | Text | Why the quantity changed. |
| `inventory_state` | Text | The stock state adjusted. |
| `inventory_location_name` | Text | The location whose stock changed. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `product.title`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `product.<field>` | [Product](https://docs.queryful.app/queryfulql/records/product.md) | Product |
| `location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Location |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Inventory](https://docs.queryful.app/queryfulql/datasets/inventory.md)
* [Received items](https://docs.queryful.app/queryfulql/datasets/inventory_shipment_received_items.md)
* [Inventory transfers](https://docs.queryful.app/queryfulql/datasets/inventory_transfers.md)
* [Inventory shipments](https://docs.queryful.app/queryfulql/datasets/inventory_shipments.md)
* [Purchase orders](https://docs.queryful.app/queryfulql/datasets/inventory_purchase_orders.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.