Postman collection
Reports Read

pixiReportReceivedOrders

Returns the number of orders created in a time range (default: today from 0:00 until now), optionally filtered by shop and grouped by location.

Dashboard report that counts received orders by their creation date (OrderHeader.CreateDate).

Time range

  • FromTime defaults to the start of the current day (0:00).
  • UntilTime defaults to the current date and time.
  • Both bounds are inclusive.

Shop filter

  • If ShopID is set, only orders that have at least one order line with OrdShopID = ShopID are counted. An empty string or NULL means all shops.

Mode depends on PerLocation

  • 0 (default, also used for NULL): counts all orders in the range that have at least one order line (matching the shop filter). The count is returned as a single row with column ReceivedOrders and is also written to the output parameter ReceivedOrders.
  • 1: joins orders with their order lines and returns one row per LocationID of the order lines with the number of distinct orders per location. No sort order is applied.

Notes

  • All reads use NOLOCK, so counts may include uncommitted data.
  • The output parameter MinutesSinceRefresh is never set by the procedure and always returns NULL.
  • In per-location mode the output parameter ReceivedOrders is not set. An order with lines in several locations is counted once for each location, so the sum of all rows can exceed the total count of mode 0.
  • Orders without any order lines are never counted.
  • Because of NULLIF(..., '') on datetime values, passing 1900-01-01 00:00:00 for FromTime or UntilTime is treated like NULL and replaced with the default.
  • The parameter PerLocation is marked with the code comment "old way".

Tables used

OrderHeader · Read Orderlines · Read
SQL object:
dbo.pipiReportReceivedOrders
Updated at 2026-10-30