pub async fn record_unit(
pool: &PgPool,
actor: &Actor,
design_revision_id: Uuid,
input: NewUnit,
) -> AppResult<Revision>Expand description
Records a physical unit built to the design revision design_revision_id:
creates the as-built item (revision A, checked out by the actor) with its
build record and, optionally, the design’s BOM – in one transaction.