labbench lots | All commands

labbench lots receive

Receive a lot, optionally leaving stock waiting to be put away

Any lab member may receive a lot. One run stocks one location. Each run sends an idempotency key and prints it: a dropped connection is retried within the run under that key, so it stocks once. If a run fails without an answer, rerun it with the same --idempotency-key and flags: the API replays the first receipt instead of stocking again. A rerun without the key is a new receive and stocks a second lot. `items list` shows the new stock. Needs a signed-in session: an API token is refused with token_write_not_allowed.

Usage

labbench lots receive [flags]

Example

labbench lots receive  --lot <lot> --material <material> --unit <unit>

Flags

FlagTypeDefaultDescription
--catalog-numberstringthe maker's catalog number, under the same rule as --maker
--handling-notesstringhandling guidance for a new material
--humiditystringhumidity guidance for a new material
--idempotency-keystringreceive key (UUID); resend the same key and flags to retry safely (default: a new one)
--locationstringlocation id, as `locations list` prints it
--lot (required)stringthe supplier's lot number
--makerstringwho made the material; recorded when this receive creates the material or the material records none, and refused when the material records a different one (compared ignoring case)
--material (required)stringwhat the lot is, e.g. "Taq polymerase"
--new-unitboolfalsedeliberately add this counted unit if it is unknown; measures remain refused
--quantityint0how many units arrived
--storage-temperature-from-cfloat640lower Celsius storage bound for a new material; left out, none is recorded
--storage-temperature-to-cfloat640upper Celsius storage bound for a new material; left out, none is recorded
--supplierstringwho sold and shipped the lot, e.g. "Fisher Scientific"
--totalint0total received units, including units to put away later
--unit (required)stringwhat one unit is, e.g. tubes; list known units with labbench lots units

Every command also accepts the global flags.