Goods in, or a late cost on a batch
stock_intakeGoods into stock from a supplier's e-invoice, or a late cost onto a batch (round 473, feature 528). action=take_in with document_id (an invoice whose goods wait), extra_cost (the delivery's transport, duty and fees; 0 if none, spread over the lines by value into each batch's landed cost) and checked_in ({line: pieces} only where fewer or more came than invoiced). action=late_cost with product, batch_day (the day the batch came in), amount (net) and document_id of the freight or duty bill: the pieces still on hand cost their share more, the share of pieces already sold is cost of sales. action=land_bill with batch_day (the day the delivery came in), amount (net) or bill_document_id (another supplier's freight or duty bill, its net read, in its currency at rate or the rate on file), spread (value, quantity, weight, volume), volumes or weights ({product: per piece}), products (some of the delivery) or document_id (the delivery's supplier invoice): one late cost per batch of the delivery, each its share. Each goes forward as a pending action, carried out on its release (release; the owner's switches decide).
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": "stock_intake"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rate | No | ||
| action | No | take_in | |
| amount | No | ||
| spread | No | ||
| company | No | ||
| product | No | ||
| volumes | No | ||
| weights | No | ||
| products | No | ||
| batch_day | No | ||
| checked_in | No | ||
| extra_cost | No | ||
| document_id | No | ||
| idempotency_key | No | ||
| bill_document_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||