StockCardChange type
One real change of a stock card's figures. Requires the stockCard.read permission. A change that
no figure of a record shows, for example a reservation that moves between two orders of one
external source, is not a record.
Fields
id
ID!
The record's id: opaque and unique, increasing in the order the records were written. Resume with a cursor, never with an id.
warehouseId
The warehouse's MAX id.
variantId
The product variant's MAX id.
warehouse
The warehouse. Requires the warehouse.read permission. Without it, the field is null with a
FORBIDDEN_ROLE error at its path, and the rest of the record is returned.
productVariant
The product variant. Requires the item.read permission. Without it, the field is null with a
FORBIDDEN_ROLE error at its path, and the rest of the record is returned.
version
Int!
The record's version: 1, 2, 3 … per card, without gaps. Compare it with StockCard.version.
occurredAt
When MAX recorded the change.
origin
How MAX found the change.
quantityChanged
Boolean!
Whether quantity changed.
reservedChanged
Boolean!
Whether reserved changed.
reservedBySourceChanged
Boolean!
Whether reservedBySource changed.
availableChanged
Boolean!
Whether available changed.
advisedChanged
Boolean!
Whether advised changed.
onOrderChanged
Boolean!
Whether onOrder changed.
waitingChanged
Boolean!
Whether waiting changed.
waitingBySourceChanged
Boolean!
Whether waitingBySource changed.
current
The figures after this change.
previous
The figures before this change. Null when no earlier figures were known.