Postman collection
Items Read

pixiItemsBySupplier

Returns a paged list of the items supplied by a given supplier, with EAN, item name and total stock quantity across all bin locations.

Returns all items that are linked to the supplier SupplNr.

  1. The procedure looks up all IntLinkNr1 values in AddItems that have the given SupplNr. It then selects every record in Items with one of these IntLinkNr1 values.
  2. For each item, StockQty is calculated as the sum of BinItemQTY in InvBinItem for the item (BinItemRef = ItemKey). This covers all bin locations and is 0 if the item has no stock records.
  3. The rows are numbered consecutively (RowNr, starting at 1) in a temporary table.
  4. The call returns only the rows with RowNr between FromRow and FromRow + Rows - 1.

Every row also carries paging information:

  • RecordsTotal: number of all matching items.
  • RecordsFrom: the value passed in FromRow.
  • RecordsRequested: the value passed in Rows.

To page through the list, increase FromRow by Rows until FromRow is greater than RecordsTotal.

Notes

  • The row numbering has no ORDER BY. The order of the items, and therefore the content of each page, is not guaranteed. It can differ between calls, so paging may return items twice or skip items.
  • If Rows is NULL, all rows from FromRow onwards are returned. If FromRow is NULL, the complete list is returned, regardless of Rows.
  • RecordsFrom and RecordsRequested echo the parameter values unchanged, including NULL.
  • All tables are read WITH (NOLOCK). The results can contain uncommitted data.
  • StockQty is the sum over all bin locations and warehouses. Reservations and stock locks are not taken into account.
  • If no item matches the supplier, an empty result set is returned. There is no error row.

Tables used

Items · Read AddItems · Read InvBinItem · Read
SQL object:
dbo.pipiItemsBySupplier
Updated at 2026-10-30