edit_stock_entry
Correct a single stock entry's best-before date, location, or amount. Use when one specific batch is wrong, leaving other details unchanged.
Instructions
Fix one stock entry: its date, its location, or its amount.
For correcting a best-before date that was estimated wrong, or a batch filed on the wrong shelf. Get the entry_id from list_stock_entries. Only the arguments given are changed; the rest of the entry is preserved.
Args: entry_id: From list_stock_entries. best_before_date: YYYY-MM-DD. location_id: Either an id or an exact location name. amount: New amount for this entry, in the product's stock unit. Prefer correct_stock for "the total is wrong" — this is for when one specific batch is wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| entry_id | Yes | ||
| location_id | No | ||
| best_before_date | No |