Create purchase order line
create_purchase_order_lineAdd a line item to a purchase order. Requires purchase_orders:write scope. The PO's amount becomes the sum of its lines. A line naming a part_id is counted in whole units, and its quantity_received is added to that part's stock. Required: purchase_order_id, description, quantity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part_id | No | Part from inventory - resolve via list_parts | |
| quantity | Yes | Quantity ordered (required) | |
| unit_cost | No | Price per unit, in the organization currency | |
| description | Yes | What is being ordered (required) | |
| line_number | No | Position on the order | |
| purchase_order_id | Yes | Purchase order ID (required) - resolve via list_purchase_orders | |
| quantity_received | No | Quantity received so far, 0 to quantity |