Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ WITH vars AS (
WHEN e.type LIKE '%.queue.digital.letter.unsuccessful.%' THEN 'Failed'
WHEN e.letterstatus = 'RETURNED' THEN 'Returned'
WHEN e.letterstatus = 'FAILED' THEN 'Failed'
WHEN e.letterstatus = 'DELIVERED' THEN 'Delivered'
WHEN e.letterstatus = 'DISPATCHED' THEN 'Dispatched'
WHEN e.letterstatus = 'REJECTED' THEN 'Rejected' ELSE NULL
END as status,
e.reasoncode,
Expand Down Expand Up @@ -59,7 +59,7 @@ WITH vars AS (
-- Print Priority Order
WHEN te.status = 'Returned' THEN 4
WHEN te.communicationtype = 'Print' AND te.status = 'Failed' THEN 3
WHEN te.status = 'Delivered' THEN 2
WHEN te.status = 'Dispatched' THEN 2
WHEN te.status = 'Rejected' THEN 1 ELSE 0
END DESC
) AS "row_number",
Expand Down
Loading
Loading