Purchase invoices: Receive
purchase_invoice_receiveReceive the goods of a RECORDED supplier invoice into stock («оприбуткувати»): every line that is a catalog item (goods for resale) goes into the warehouse with what is left to receive. Name it by 'draft_id' (purchase_invoice_list) or the ERP 'invoice_id'; 'warehouse' (its name) only when the company has several — else the main one. Lines not linked to a catalog item, and batch-tracked items (they need a lot number), are left out and listed. Safe to repeat: what is already received is not received twice. Proposed write; then erp_stock_levels shows it. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "purchase_invoice_receive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | No | The draft id a list or create answer gave. | |
| warehouse | No | ||
| invoice_id | No |