Postman collection
Stock Read

pixiGetPickListDetailForPico

Returns the detail lines of a finished pick list, including its split pick lists, with bin, item, batch and order data for the Pico picking app.

Returns one row per picking position of the pick list PLHkey. The call passes the key to an internal procedure, Pixi_GetPickListDetailForPico, and does not change its default filters.

Which pick lists are included

  • The pick list header with PLHkey = @PLHkey.
  • All split pick lists whose PLHOriginalKey = @PLHkey.
  • Only headers with ExecutionFinished = 1.
  • Headers of every picking status.

How rows are built

  • Pick list items (PLitem) are grouped into one row per combination of:
    • pick list header, order line and bin (InvBinItem.BinRef);
    • batch number and best-before date;
    • item (BinItemRef) and pliBinRef.
  • Qty is the number of pick list item records in the group; each record stands for one piece.
  • MinPlItemKey is the smallest PLIkey in the group.
  • Each row is enriched with data from:
    • the bin: name, sort number, bin group;
    • the pick list header: expiry date, creation date and employee, comment, box range, picking status code, original key;
    • the order line: order number and external order number;
    • the item: names, numbers, picture links, manufacturer (items.Artist), tags and packing unit.

Computed columns

  • ItemName is the item name prefixed by an item number in upper case plus a space. The setting PickListNumberColumn selects the number: EANUPC, ItemNrInt or ItemNrSuppl. Any other value or no setting gives no prefix.
  • OtherItemsCount counts the InvBinItem records in the same bin that belong to a different item.
  • DistinctBins is the number of distinct bins over all rows of the result. It is the same value in every row.
  • ItemTags lists the item's tag names. Each name ends with a comma, and the names are separated by spaces, e.g. Fragile, Heavy,.
  • BestBeforeDate_Text is the best-before date formatted as dd.mm.yyyy.
  • OrderUnit is items.OrderUnit converted to an integer. It is NULL if the value is empty or not numeric.

Swapped item number columns

  • ItemNrInt contains the supplier item number (ItemNrSuppl). This keeps backward compatibility.
  • ItemNrInt1 contains the internal item number.

If the pick list does not exist or is not finished, the result set is empty.

Notes

  • Order not guaranteed: the internal procedure sorts by BinGroup, BinSortNum, BinItemRef descending and then header creation date. Its rows are buffered in a temporary table, and the final SELECT has no ORDER BY, so the delivered row order is not guaranteed. Sort on the client if needed.
  • Read-only: all tables are read with NOLOCK, so uncommitted data can appear.
  • Runtime setting: the prefix in ItemName depends on the setting PickListNumberColumn. It is read through fpixi_GetSetting, whose definition is not attached.
  • Column order: OrderUnit is appended as the last column so that consumers reading by position are not affected.
  • Truncation risk: the intermediate temporary table limits some columns, e.g. EanUpc to 13 and ItemNrSuppl to 50 characters. Longer source values may lead to a truncation error.
  • Other filters not exposed: the internal picking-status filter and the option to exclude split pick lists are not available through this call.

Tables used

PLHeader · Read PLitem · Read InvBinItem · Read InvBin · Read Orderlines · Read items · Read Tag · Read TagMatch · Read PL_PickingStatus · Read
SQL object:
dbo.pipiGetPickListDetailForPico
Updated at 2026-10-30