Using The Generic Auto-Waver

The generic auto-waver is driven by the AutoWaves.Rules system parameter. It has a JSON value that dictates the rules on the auto-waver. It also uses REPs that dictate which orders are candidates for the wave stream.

The report needs to find the JobIDs for the candidate orders. An optional field Slice can be used. The slice breaks down the orders in the auto-wave streams based on the slice value.

An example report that gets all orders for a specific tenant that have an ordered quantity of 1 that is sliced on the carrier name:

Copy
SELECT PCK.JobID, CAR.CarrierName as Slice

FROM PCK
INNER JOIN CAR1 ON CAR1.CarrierServiceID = PCK.CarrierServiceID
INNER JOIN CAR ON CAR.CarrierID = CAR1.CarrierID
INNER JOIN PCK1 ON PCK.JobID = PCK1.JobID

WHERE PCK.InstanceID = :InstanceID 
AND PCK.TenantID = 2113 
AND JobStatus = 'Ready' 
AND PCK.WarehouseID = 40

GROUP BY PCK.JobID HAVING SUM(PCK1.Quantity) = 1
ORDER BY PCK.JobID