Przejdź do głównej zawartości

WithdrawPaperInput

Dla: Programista

Typ wejściowyWithdrawPaperInput

An issue of paper from stock: the sheets taken, what for and why. The stock drops by the sheets taken and never below zero. An issue for an order also fulfils the active reservations of this paper for that order (of elementId, when given).

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.

isFscBoolean

True: FSC-certified paper is issued, so the FSC stock (Paper.fscQuantitySheets) drops by the same sheets; refused when the FSC stock holds fewer, and from an API key when the paper is not FSC-certified (Paper.isFsc false). Default false.

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

Sheets taken from stock — always give it: a whole number above zero and at most the stock (Paper.quantitySheets); more is refused with STOCK_INSUFFICIENT.

withdrawalTypeWithdrawalType

Why the paper leaves the stock. Default PRODUCTION.

Używane w