pub async fn remove(
pool: &PgPool,
actor: &Actor,
line_id: Uuid,
) -> AppResult<BomLine>Expand description
Removes a BOM line from an in-work revision.
§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). - Locks: the parent revision row (
revisions::lock). - Audit:
bom.remove. - Notifications / webhooks: none.
- Atomic: one transaction.