Skip to main content
Version: v1.0.0(int)

W145: List sales orders

Returns SO header rows for the Sales Orders page, hydrated with customer name and channel. Filters are supplied by the caller.

Steps​

  1. List the SOs. Call SalesOrders.listSos(filters).

  2. Batch-hydrate customers and channels. Single Customers.getByIds and SalesOrders.getChannelsByIds calls to attach names; avoids N+1 fetches at L4.

Returns​

SO header rows with customer name and channel attached.

Business rules​

  • Tenant scoping is automatic.

Errors​

None.