Postman collection
Suppliers Read

pixiGetMatchesForDeliveredItem

Returns the supplier order lines that are matched to one item line of a supplier delivery document, with ordered, received, open and matched quantities.

Returns the matches (BuyingMatch records) between one line of a supplier delivery document and the supplier order lines it was booked against.

  • Only matches whose delivery reference equals SDelDkey are considered.
  • Each match is joined to its supplier order line and the supplier order. Matches without an existing order line or order are not returned.
  • The rows are grouped by order date and supplier order line, so there is one row per matched order line:
    • OrderNr is the internal number of the supplier order, OrderId its ID.
    • OrderQty, QtyReceived and QtyNotDelivered come from the order line (QtyNotDelivered is 0 if no value is stored).
    • BuyingMatchQty is the sum of all matched quantities of this delivery line for the order line.
    • SupplName is the name of the supplier taken from the supplier number stored on the match.

The call is a wrapper: it runs the internal procedure Pixi_Buy_GetMatchesForDeliveredItem, buffers its rows in a temporary table and returns them.

Notes

  • All reads use NOLOCK, so uncommitted data may be returned.
  • If SDelDkey is omitted (default NULL), no rows are returned because the filter compares with =.
  • The internal procedure sorts by order date and ordered quantity, but the wrapper selects from its temporary table without ORDER BY. The row order is therefore not guaranteed; sort on the client if needed.
  • All quantity columns are stored as int in the buffer table; decimal quantities would be truncated.

Tables used

BuyingMatch · Read SupplierOrderLine · Read SupplierOrder · Read Suppliers · Read
SQL object:
dbo.pipiGetMatchesForDeliveredItem
Updated at 2026-10-30