Typ obiektowyStockMovement
One change of a material stock: a receipt, an issue, a correction or a stock-take adjustment. Its quantities, time and the delivery details of a receipt (price, supplier, delivery document) never change once it is booked, so a sync reads movements by occurredAt. Its links to other records (orderId, productId, elementId, operationId, purchaseOrderId, supplierId) become null when that record is deleted in Prynt, and deleting a material deletes its movements: a periodic full read catches both.
Pola
| Pole | Typ | Opis |
|---|---|---|
currency | String | Currency of |
deliveredAt | DateTime | When the goods were delivered, as the delivery document says — given with the receipt; null when not given. Not |
discrepancyReason | StockTakeDiscrepancyReason | Why the stock take found a difference (adjustments only); null otherwise. |
documentNumber | String | Number of the delivery document (delivery note or supplier invoice) given with the receipt, e.g. "WZ 412/2026"; null when none. With |
elementId | ID | The element of the product; null when not recorded. |
id | ID! | Identifier of the movement. |
materialId | ID! | The material whose stock moved: a paper, a paint or a foil, by |
materialType | StockMaterialType! | Kind of material whose stock moved. |
netValue | Float | Net value of the goods received, in Wymaga zakresu |
notes | String | Note entered with the movement; null when none. |
occurredAt | DateTime! | When the movement was booked. What |
operationId | ID | The operation of the element; null when not recorded. |
orderId | ID | The order the material was issued for; null when none, or when that order was deleted. |
priceUnit | String | Unit |
productId | ID | The product of the order; null when not recorded. |
purchaseOrderId | ID | The purchase order whose delivery this receipt booked; null otherwise, or when that purchase order was deleted. |
quantityAfter | Float | Stock after the movement, in |
quantityBefore | Float | Stock before the movement, in |
quantityChange | Float | How the stock changed, in |
stockTakeId | ID | The stock take whose approval booked this adjustment; null otherwise. |
supplierId | ID | The supplier the goods were received from: given with a receipt booked by hand, or the supplier of the purchase order for a delivery. Null when not recorded, or when that supplier was deleted in Prynt. |
type | StockMovementType! | What moved the stock. |
unit | StockUnit! | Unit of the quantities: the stock unit of the material. |
unitPrice | Float | Net price of one Wymaga zakresu |