amend_purchase_order
Replace the line items on an unapproved purchase order and return it to Draft for resubmission, using a preview confirmation code to apply the amendment.
Instructions
Replace the lines of an unapproved order. It goes back to Draft for resubmission.
Args: po: Purchase order ID. lines: The full new set of lines (same shape as create_purchase_order). confirmation_code: From preview("amend_purchase_order", ). notes: Optional new notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po | Yes | ||
| lines | Yes | ||
| notes | No | ||
| confirmation_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |