Skip to main content

record_unit

Function record_unit 

Source
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.