po_revise
Revises a sent purchase order by snapshotting header and lines, incrementing the revision, and reopening it as an editable draft; received and billed quantities stay unchanged.
Instructions
Revidiere eine gesendete Bestellung (sent -> draft, die Revise-Kante): snapshots the current header + lines into po_revision (append-only, H-AUDIT), increments revision, and re-opens the PO as a draft for editing via po_upsert. received_qty and billed_qty survive untouched (they belong to receipts/matches). The re-send rides the P8-gated po_send, so a revision can never leak to the supplier without the dial. Only a SENT PO is revisable (draft/received/closed/cancelled -> invalid_transition). Idempotent: a replay yields one snapshot + one increment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"poId": "<poId>"
},
"name": "po_revise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poId | Yes | ||
| actor | No | ||
| reason | No | ||
| workspaceId | Yes | ||
| idempotencyKey | No |