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
-
List the SOs. Call
SalesOrders.listSos(filters). -
Batch-hydrate customers and channels. Single
Customers.getByIdsandSalesOrders.getChannelsByIdscalls 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.