-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14338 from transcom/MAIN-B-21568-Show-UB-Preappro…
…ved-Service-Items Main-B-21568 show ub preapproved service items
- Loading branch information
Showing
33 changed files
with
2,210 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
migrations/app/schema/20241126222026_add_sort_column_to_re_service_items.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ALTER TABLE re_service_items ADD COLUMN IF NOT EXISTS sort int; | ||
|
||
COMMENT ON COLUMN re_service_items.sort IS 'Sort order for service items to be displayed for a given shipment type.'; | ||
|
||
update re_service_items set sort = 1 where service_id in (select id from re_services where code in ('ISLH','UBP')); | ||
--A shipment will only have either POEFSC or PODFSC, so we set them to the same sort value | ||
update re_service_items set sort = 2 where service_id in (select id from re_services where code = 'POEFSC'); | ||
update re_service_items set sort = 2 where service_id in (select id from re_services where code = 'PODFSC'); | ||
update re_service_items set sort = 3 where service_id in (select id from re_services where code in ('IHPK','IUBPK')); | ||
update re_service_items set sort = 4 where service_id in (select id from re_services where code in ('IHUPK','IUBUPK')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.