Przejdź do głównej zawartości

WithdrawPaintInput

Dla: Programista

Typ wejściowyWithdrawPaintInput

An issue of paint from stock: the grams taken, what for and why. The stock drops by the grams taken and never below zero.

Pola

PoleTypOpis
elementIdID

The element the material is issued for; it must belong to productId (and orderId) when given. The movement records its product and order too.

notesString

A note about the issue, up to 2000 characters.

operationIdID

The operation the material is issued for; it must belong to elementId (and the product and order) when given. The movement records its element, product and order too, so the movement filters by any of them find it.

orderIdID

The order the material is issued for: it must exist. From an API key, that order — given here or reached through productId, elementId or operationId — must not be archived. warehouse:write may name any order: the movement refers to it by its id only (StockMovement.orderId).

productIdID

The product the material is issued for; it must belong to orderId when both are given. The movement records its order too (StockMovement.orderId).

quantityFloat

Grams taken from stock — always give it: above zero (kept to 0.001 g) and at most the stock (Paint.quantityGrams); more is refused with STOCK_INSUFFICIENT.

withdrawalTypeWithdrawalType

Why the paint leaves the stock. Default PRODUCTION.

Używane w