New purchase order
p2p_create_poDraft an order to a vendor: what, how many, at the price they quoted. A draft commits to nothing until it is issued. Use the items as they are on record (core items); the price is the vendor's price for one, as they quoted it, never the price you sell at. One line per item. Never invent a price or a quantity: ask. A draft can be cancelled and raised again; once issued, the prices are frozen and the order is what bills are matched against. Effects: purchase order created in draft.
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": {
"vendor": "<vendor>",
"lines": "<lines>"
},
"name": "p2p_create_po"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Anything about the order. | |
| lines | Yes | What is being ordered. | |
| vendor | Yes | The vendor's name as a person would say it (Acme Supply). | |
| currency | No | ISO 4217. Defaults to the company currency. | |
| vendor_ref | No | The vendor's quote or order reference. | |
| expected_date | No | When the vendor said it will arrive. ISO date, YYYY-MM-DD. |