Receive goods against a purchase order
grn_addCreate a goods-receipt note against an open purchase order, recording received and damaged units per line. Automatically calculates shortages, flags over-receipts beyond tolerance, and allows partial deliveries with discrepancy tracking.
Instructions
Create a goods-receipt note (GRN) against an open purchase order. Give one cell per PO line: the whole units received and/or damaged. received is checked against the line's ordered quantity and the PO's over tolerance; receiving past the over tolerance is refused unless declared damaged. Shortage is recorded automatically (ordered minus received, floored at zero) and shown as a discrepancy. Partial deliveries are fine: raise several GRNs against the same PO. Free tier, full CRUD.
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": {
"po": "<po>",
"lines": "<lines>"
},
"name": "grn_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po | Yes | Purchase-order id or reference, e.g. PO-0001 | |
| note | No | Memo for the whole GRN | |
| lines | Yes | Which PO lines you are receiving now | |
| carrier | No | Delivered by | |
| receivedAt | No | ISO date of physical receipt (default today) |