Postman collection
Items Read

pixiDispoGetItems

Returns a batch of items with preferred supplier, prices, stock and location-specific planning data for export to the Logcontrol Dispo software.

Exports item master data for the Logcontrol disposition (purchase planning) software. The call works in batches of items.

  1. Candidate selection: the first ItemCount items with ItemKey greater than ItemKeyStart are taken from items, ordered by ItemKey ascending, together with their default supplier.
  2. Preferred supplier: if an AddItems record with PreferredSupplier = 1 exists, its supplier replaces the default supplier of the item.
  3. Additional data per item:
    • item tags (tags of type TypeId = 1) as a comma-separated list,
    • the earliest OrderDate of all order lines of the item,
    • the summed bin quantity (BinItemQTY) over all bins in locations that are not special stock (SpecialStock <> 1).
  4. Result: one row per item and location from ItemLocationSpecific. Only rows are returned where
    • the supplier exists in Suppliers,
    • an AddItems record exists for the item and this supplier,
    • the location is not a special stock location,
    • and, if LocationIds is given, the LocID is contained in the comma-separated list.

The result is sorted by ItemKey ascending. Decimal values (SupplPrice, Price) are returned as text with a comma as decimal separator; dates are formatted as dd.mm.yyyy. Single and double quotes are removed from the item name.

Paging: call again with ItemKeyStart set to the highest ItemKey of the previous batch.

Notes

  • All reads use NOLOCK; results may contain uncommitted data.
  • ItemCount limits the number of candidate items, not the number of result rows. Because of the per-location rows the result can contain more rows; because of the inner joins (supplier, AddItems, ItemLocationSpecific, non-special-stock location, location filter) it can contain fewer or even none, although further items exist. An empty result therefore does not necessarily mean the end of the item list; a caller should advance ItemKeyStart by the batch range rather than stop.
  • Quantity is joined via the order line data: for items without any order line Quantity is always 0, even if stock exists.
  • Quantity is the total over all non-special-stock locations, not the quantity of the location in LocationId (see LocationQuantity for that).
  • Tags starts with a leading space (only the first comma is removed), and special characters such as & are XML-escaped by the concatenation.
  • An empty or whitespace-only LocationIds is treated like NULL (no location filter). List entries are trimmed; each entry is compared as varchar(10).
  • VATLevel: L for MwStSatz = 2, 0 for MwStSatz = 3, otherwise H. Typ is always 0100.
  • Temporary tables are dropped via util.TempTableDrop (not attached).

Tables used

items · Read AddItems · Read TagMatch · Read Tag · Read Orderlines · Read InvBinItem · Read InvBin · Read Location · Read TontrArten · Read Suppliers · Read ItemLocationSpecific · Read
SQL object:
dbo.pipiDispoGetItems
Updated at 2026-10-30