Add a line to an open GRN
grn_line_addAdd purchase-order lines or additional units to an open goods-receipt note when deliveries arrive in batches. Over-tolerance checks still apply to cumulative received counts.
Instructions
Add another PO line (or more units on a line already open on this GRN) to an existing open goods-receipt note. Useful when one delivery arrives in batches. The over-tolerance gate still applies to the PO line's cumulative received count across every GRN. 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": {
"grn": "<grn>",
"line": "<line>",
"received": "<received>"
},
"name": "grn_line_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grn | Yes | Open GRN id, e.g. GRN-0001 | |
| line | Yes | PO line to receive, e.g. L01 | |
| damaged | No | Whole units received but damaged | |
| received | Yes | Whole units of good stock | |
| damageNote | No | What was damaged | |
| shortageNote | No | Why it is short |