pub async fn update(
pool: &PgPool,
actor: &Actor,
line_id: Uuid,
upd: BomLineUpdate,
) -> AppResult<BomLine>Expand description
Changes quantity, find number and notes of a BOM line.
§Invariants
- Permission: the line’s parent revision is visible (“not found” otherwise), checked out
by the actor (409 otherwise) and editable (
revisions::ensure_editable: in work, CAD editor of its group); the new find number is free (409). - Locks: the parent revision row (
revisions::lock). - Audit:
bom.update. - Notifications / webhooks: none.
- Atomic: one transaction.