frontend / api/analytics/search / getItemsForSupplier
Function: getItemsForSupplier()
getItemsForSupplier(
supplierId,limit):Promise<ItemRef[]>
Defined in: src/api/analytics/search.ts:109
Fetch items that belong to a specific supplier (strict scope). Returns array of {id, name}. Empty array on errors.
Parameters
supplierId
string
limit
number = 500
Returns
Promise<ItemRef[]>
Example
const items = await getItemsForSupplier('SUP-001', 100);
return <Select options={items} />;