erpnext_work_order_make_stock_entry
Generate a stock entry from an ERPNext work order, setting quantities, source and target warehouses, and choosing to save draft or submit as one confirmable action.
Instructions
Generate Stock Entry using ERPNext; freeze create/submit as one confirmable dependent batch.
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": {
"work_order": "<work_order>",
"purpose": "<purpose>"
},
"name": "erpnext_work_order_make_stock_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| submit | No | ||
| dry_run | No | ||
| purpose | Yes | ||
| save_draft | No | ||
| work_order | Yes | ||
| target_warehouse | No | ||
| source_stock_entry | No | ||
| is_additional_transfer_entry | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||