Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B 21410 int #14483

Merged
merged 171 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
285a358
Initial commit of IOSHUT/IDSHUT service items
CoryKleinjanCACI Dec 16, 2024
b10726d
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 16, 2024
c642331
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 17, 2024
e558fc7
Updating prime ui for international shuttle
CoryKleinjanCACI Dec 17, 2024
6902e1c
Merge branch 'B-21410' of https://github.com/transcom/mymove into B-2…
CoryKleinjanCACI Dec 17, 2024
7f1b1ee
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 18, 2024
b49ede4
Adding initial pricer
CoryKleinjanCACI Dec 19, 2024
50aae26
Update to international shuttle pricing
CoryKleinjanCACI Dec 19, 2024
2d6e94b
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 19, 2024
c376ead
Adding international shuttle pricer tests
CoryKleinjanCACI Dec 20, 2024
12eda8e
Updating for tests
CoryKleinjanCACI Dec 20, 2024
20b8028
Adding test for international service items
CoryKleinjanCACI Dec 23, 2024
0289cb4
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 23, 2024
a8c6a11
Updating international accessorial price with market for tests
CoryKleinjanCACI Dec 23, 2024
063cfdd
Updating international shuttle pricers
CoryKleinjanCACI Dec 23, 2024
c086b4f
Updating international accessorial prices to use market
CoryKleinjanCACI Dec 23, 2024
db8be8e
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 23, 2024
c87a38c
Updating tests for international accessorial pricing
CoryKleinjanCACI Dec 23, 2024
bd72b36
Adding update ability for IDSHUT/IOSHUT
CoryKleinjanCACI Dec 24, 2024
a66bd6c
Adding payload to model tests
CoryKleinjanCACI Dec 24, 2024
0267098
updating payload to model tests
CoryKleinjanCACI Dec 27, 2024
cd0558e
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 27, 2024
0c460df
Adding Internationa Shuttle SIT tests
CoryKleinjanCACI Dec 30, 2024
b15facc
Merge branch 'main' into B-21410
CoryKleinjanCACI Dec 30, 2024
c524bcd
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Dec 30, 2024
7d0928d
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Dec 31, 2024
94d2320
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Dec 31, 2024
815d456
Pushing changes for pricing international payment service items
CoryKleinjanCACI Dec 31, 2024
f73aa48
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Dec 31, 2024
089ac19
Updating typos in comments
CoryKleinjanCACI Dec 31, 2024
ac3da2e
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Dec 31, 2024
03ad37e
Adding ability to re-submit international shuttles
CoryKleinjanCACI Jan 2, 2025
5cba467
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 2, 2025
2eb355e
Updating naming
CoryKleinjanCACI Jan 2, 2025
9836810
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 2, 2025
dbce219
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 2, 2025
ef9444a
Updating generated files
CoryKleinjanCACI Jan 3, 2025
1818bd7
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 3, 2025
b929e76
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 3, 2025
63229f5
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 3, 2025
946a011
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 3, 2025
9da11ce
Updating tests for market dest/origin lookup
CoryKleinjanCACI Jan 3, 2025
af0296a
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 3, 2025
6404516
Fixing tests
CoryKleinjanCACI Jan 3, 2025
2294953
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 3, 2025
f4ce51b
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 8, 2025
829c03a
Adding IOSHUT and DOSHUT documentation
CoryKleinjanCACI Jan 8, 2025
3981a82
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 8, 2025
41d9100
Revert "Adding IOSHUT and DOSHUT documentation"
CoryKleinjanCACI Jan 8, 2025
9534f65
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 8, 2025
6774885
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 9, 2025
c81104d
Updating comments
CoryKleinjanCACI Jan 9, 2025
72107ec
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 9, 2025
8c95a71
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 9, 2025
3715698
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 9, 2025
8f07df3
Updating createPaymentRequest documentation
CoryKleinjanCACI Jan 9, 2025
781f0d3
Revert "Updating createPaymentRequest documentation"
CoryKleinjanCACI Jan 9, 2025
10580fe
Updating comment for createPaymentRequest
CoryKleinjanCACI Jan 9, 2025
40ce0e3
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 9, 2025
3722cad
Merge branch 'B-21410' of https://github.com/transcom/mymove into B-2…
CoryKleinjanCACI Jan 9, 2025
0a25cf8
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 9, 2025
5287215
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 9, 2025
884dc47
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 10, 2025
ec918ba
Updating creation of internation accessorials to use stored proc
CoryKleinjanCACI Jan 13, 2025
e200b59
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 13, 2025
04c122e
Reverting inadvertant changes to migration
CoryKleinjanCACI Jan 13, 2025
47f1f75
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 13, 2025
0f2c6f7
Fixing misnamed variable
CoryKleinjanCACI Jan 13, 2025
8da417c
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 13, 2025
63acb8d
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 13, 2025
0f55a72
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 14, 2025
99cf053
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 14, 2025
12a2a93
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 14, 2025
ba584ff
Revert "Merge branch 'B-21410' into B-21410-INT"
CoryKleinjanCACI Jan 14, 2025
fb15140
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 14, 2025
81caaa4
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 14, 2025
345710a
Fixing merge issues
CoryKleinjanCACI Jan 14, 2025
8ce3841
Removing unused files
CoryKleinjanCACI Jan 14, 2025
6baf03d
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 14, 2025
d671a10
Updating tests
CoryKleinjanCACI Jan 14, 2025
ce1336f
Updating test
CoryKleinjanCACI Jan 14, 2025
e48d0cc
updating tests
CoryKleinjanCACI Jan 14, 2025
9b6ecbf
updating service item type
CoryKleinjanCACI Jan 14, 2025
a334913
updating for international accessorials
CoryKleinjanCACI Jan 15, 2025
cada6ff
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
eb0a95e
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
8316d29
Updating test
CoryKleinjanCACI Jan 15, 2025
ae7de13
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
163ccf0
Moving pricing helping for international shuttling
CoryKleinjanCACI Jan 15, 2025
1a3122b
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
b217e0a
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
e660f87
moving tests
CoryKleinjanCACI Jan 15, 2025
2f2a478
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
902aa31
Merge branch 'B-21410-INT' of https://github.com/transcom/mymove into…
CoryKleinjanCACI Jan 15, 2025
8489628
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 15, 2025
bc588f4
Updating pickup to destination address
CoryKleinjanCACI Jan 15, 2025
53653c1
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
2164aa8
Removing POD and POE service items from list
CoryKleinjanCACI Jan 15, 2025
32be9f4
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
01e3f49
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 15, 2025
6777f33
Merge branch 'B-21410-INT' of https://github.com/transcom/mymove into…
CoryKleinjanCACI Jan 15, 2025
d65a3c0
updating procs for international shuttle
CoryKleinjanCACI Jan 17, 2025
d78404d
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 17, 2025
ea14415
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 17, 2025
965dd1b
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 17, 2025
02acc6d
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 20, 2025
385b5eb
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 21, 2025
0c2f768
Updating proc to get estimated price for international shuttle
CoryKleinjanCACI Jan 21, 2025
7c18cd6
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 21, 2025
dfab160
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 21, 2025
62c3353
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 21, 2025
7b2b46f
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 21, 2025
6a4de43
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 21, 2025
633d588
Adding tests
CoryKleinjanCACI Jan 21, 2025
f25c557
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 21, 2025
2ec036e
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
20c1aca
updating tests
CoryKleinjanCACI Jan 22, 2025
d0a971f
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
415ec04
Removing comment
CoryKleinjanCACI Jan 22, 2025
f01273f
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
c7e7b33
Removing double poefsc and podfsc
CoryKleinjanCACI Jan 22, 2025
d824bc7
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
cbf1f83
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
ce2c4ac
Adding test for value function
CoryKleinjanCACI Jan 22, 2025
e86e7d2
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
c75565f
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 22, 2025
ac69a96
Updating to call CreateInternationalMTOServiceItem
CoryKleinjanCACI Jan 23, 2025
c2ff31f
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
8675e05
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
fea5b8e
updating error handling
CoryKleinjanCACI Jan 23, 2025
d8c973d
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
fb66475
Merge branch 'B-21410-INT' of https://github.com/transcom/mymove into…
CoryKleinjanCACI Jan 23, 2025
1928f00
adding comment
CoryKleinjanCACI Jan 23, 2025
2895873
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
e2a1328
updating tests
CoryKleinjanCACI Jan 23, 2025
b60b510
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
c6cdd7e
updating test name
CoryKleinjanCACI Jan 23, 2025
a6402ea
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
1163603
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
62abf24
Updating Super Admin tests
CoryKleinjanCACI Jan 23, 2025
19b5efa
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
9952ac7
Updating super admin tests
CoryKleinjanCACI Jan 23, 2025
b7e340b
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
82655c0
Updating call to createInternationalAccessorial proc
CoryKleinjanCACI Jan 23, 2025
c96d7a4
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
cee788f
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
d49fd23
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
8d4e018
Updating naming of shuttle forms and testing
CoryKleinjanCACI Jan 23, 2025
4bb94ac
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
43160c3
renaming references to international shuttle form for prime
CoryKleinjanCACI Jan 23, 2025
ea1e2d2
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
dbd5b69
Updating intl pricing test
CoryKleinjanCACI Jan 23, 2025
4dc2e17
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
d888629
using correct market code
CoryKleinjanCACI Jan 23, 2025
c0bd052
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
4830186
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 23, 2025
96d2de3
Updating procedure to return created service ids
CoryKleinjanCACI Jan 24, 2025
0ef837e
Merge branch 'main' into B-21410
CoryKleinjanCACI Jan 24, 2025
a3da27f
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
0d9f98e
Updating proc param from OUT to INOUT
CoryKleinjanCACI Jan 24, 2025
24746d9
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
bcd2386
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
64af740
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
2695238
Updating proc for pricing international service shuttle
CoryKleinjanCACI Jan 24, 2025
21ee12c
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
4034f1a
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
5e13c49
updating pricing proc
CoryKleinjanCACI Jan 24, 2025
eae2b0e
Merge branch 'B-21410' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
a8e8746
Merge branch 'B-21410-INT' of https://github.com/transcom/mymove into…
CoryKleinjanCACI Jan 24, 2025
fd747b6
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 24, 2025
10520a2
Merge branch 'integrationTesting' into B-21410-INT
CoryKleinjanCACI Jan 27, 2025
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
Binary file modified config/tls/milmove-cert-bundle.p7b
Binary file not shown.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.28.0
go.opentelemetry.io/otel/trace v1.31.0
go.uber.org/zap v1.27.0
golang.org/x/crypto v0.31.0
golang.org/x/crypto v0.27.0
golang.org/x/net v0.29.0
golang.org/x/oauth2 v0.23.0
golang.org/x/text v0.21.0
Expand Down Expand Up @@ -262,8 +262,8 @@ require (
golang.org/x/image v0.23.0 // indirect
golang.org/x/mod v0.20.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliY
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A=
golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g=
golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k=
Expand Down Expand Up @@ -831,8 +831,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand All @@ -849,8 +849,8 @@ golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q=
golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM=
golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM=
golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
4 changes: 3 additions & 1 deletion migrations/app/migrations_manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1071,13 +1071,15 @@
20241230150644_student_travel_weight_limit_param.up.sql
20241230190638_remove_AK_zips_from_zip3.up.sql
20241230190647_add_missing_AK_zips_to_zip3_distances.up.sql
20241231155337_add_payment_params_for_international_shuttle.up.sql
20250103130619_revert_data_change_for_gbloc_for_ak.up.sql
20250103142533_update_postal_codes_and_gblocs_for_ak.up.sql
20250103180420_update_pricing_proc_to_use_local_price_variable.up.sql
20250110001339_update_nts_release_enum_name.up.sql
20250110153428_add_shipment_address_updates_to_move_history.up.sql
20250110214012_homesafeconnect_cert.up.sql
20250113152050_rename_ubp.up.sql
20250113160816_updating_create_accessorial_service_item_proc.up.sql
20250113201232_update_estimated_pricing_procs_add_is_peak_func.up.sql
20250116200912_disable_homesafe_stg_cert.up.sql
20250120144247_update_pricing_proc_to_use_110_percent_weight.up.sql
20250121153007_update_pricing_proc_to_handle_international_shuttle.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
INSERT INTO service_params
(id,service_id,service_item_param_key_id,created_at,updated_at)
VALUES
('379c6d36-56ed-4469-8d17-cc5060b02fa3', (SELECT id FROM re_services WHERE code='IOSHUT'), (SELECT id FROM service_item_param_keys WHERE key='ContractCode'), now(), now()),
('1925f884-e66a-4c5b-91b5-f953072dadfc', (SELECT id FROM re_services WHERE code='IOSHUT'), (SELECT id FROM service_item_param_keys WHERE key='ContractYearName'), now(), now()),
('590786bd-c608-429b-9382-bcb12e165512', (SELECT id FROM re_services WHERE code='IOSHUT'), (SELECT id FROM service_item_param_keys WHERE key='EscalationCompounded'), now(), now()),
('8c2d6c08-2521-40d5-bb8b-4998d6c43ceb', (SELECT id FROM re_services WHERE code='IOSHUT'), (SELECT id FROM service_item_param_keys WHERE key='PriceRateOrFactor'), now(), now());

INSERT INTO service_params
(id,service_id,service_item_param_key_id,created_at,updated_at)
VALUES
('b2588961-21af-416d-bb89-fcff62230991', (SELECT id FROM re_services WHERE code='IDSHUT'), (SELECT id FROM service_item_param_keys WHERE key='ContractCode'), now(), now()),
('1ee015d0-ae1a-4f0f-b228-de2537816a4b', (SELECT id FROM re_services WHERE code='IDSHUT'), (SELECT id FROM service_item_param_keys WHERE key='ContractYearName'), now(), now()),
('4eab020b-7df0-42db-b285-2ad2fc0c213c', (SELECT id FROM re_services WHERE code='IDSHUT'), (SELECT id FROM service_item_param_keys WHERE key='EscalationCompounded'), now(), now()),
('4bb8cc94-b2e2-417e-a512-a361bcadd9ba', (SELECT id FROM re_services WHERE code='IDSHUT'), (SELECT id FROM service_item_param_keys WHERE key='PriceRateOrFactor'), now(), now());
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
DO '
BEGIN
IF EXISTS (SELECT 1 FROM pg_type WHERE typname = ''mto_service_item_type'') THEN
ALTER TYPE mto_service_item_type DROP ATTRIBUTE "re_service_id";
ALTER TYPE mto_service_item_type ADD ATTRIBUTE "re_service_code" text;
END IF;
END
';

DROP PROCEDURE create_accessorial_service_items_for_shipment(uuid,mto_service_item_type[]);
CREATE OR REPLACE PROCEDURE create_accessorial_service_items_for_shipment (
IN shipment_id UUID,
IN service_items mto_service_item_type[],
INOUT created_service_item_ids text[]
) AS '
DECLARE
s_type mto_shipment_type;
m_code market_code_enum;
move_id UUID;
service_item RECORD;
item mto_service_item_type;
new_service_id text;
BEGIN
-- get the shipment type, market code, and move_id based on shipment_id
SELECT ms.shipment_type, ms.market_code, ms.move_id
INTO s_type, m_code, move_id
FROM mto_shipments ms
WHERE ms.id = shipment_id;

IF s_type IS NULL OR m_code IS NULL THEN
RAISE EXCEPTION ''Shipment with ID % not found or missing required details.'', shipment_id;
END IF;

-- loop through each provided service item object
FOREACH item IN ARRAY service_items
LOOP
FOR service_item IN
SELECT rsi.id,
rs.id AS re_service_id,
rs.service_location,
rsi.is_auto_approved,
rs.code AS service_code
FROM re_service_items rsi
JOIN re_services rs ON rsi.service_id = rs.id
WHERE rsi.shipment_type = s_type
AND rsi.market_code = m_code
AND rs.code = (item.re_service_code)
AND rsi.is_auto_approved = false
LOOP
BEGIN
IF NOT does_service_item_exist(service_item.re_service_id, shipment_id) THEN
INSERT INTO mto_service_items (
mto_shipment_id,
move_id,
re_service_id,
service_location,
status,
created_at,
updated_at,
sit_postal_code,
sit_entry_date,
sit_customer_contacted,
reason,
estimated_weight,
actual_weight,
pickup_postal_code,
description,
sit_destination_original_address_id,
sit_destination_final_address_id,
sit_requested_delivery,
sit_departure_date,
sit_origin_hhg_original_address_id,
sit_origin_hhg_actual_address_id,
customer_expense,
customer_expense_reason,
sit_delivery_miles,
standalone_crate
)
VALUES (
shipment_id,
move_id,
service_item.re_service_id,
service_item.service_location,
''SUBMITTED''::service_item_status,
NOW(),
NOW(),
(item).sit_postal_code,
(item).sit_entry_date,
(item).sit_customer_contacted,
(item).reason,
(item).estimated_weight,
(item).actual_weight,
(item).pickup_postal_code,
(item).description,
(item).sit_destination_original_address_id,
(item).sit_destination_final_address_id,
(item).sit_requested_delivery,
(item).sit_departure_date,
(item).sit_origin_hhg_original_address_id,
(item).sit_origin_hhg_actual_address_id,
(item).customer_expense,
(item).customer_expense_reason,
(item).sit_delivery_miles,
(item).standalone_crate
) RETURNING id INTO new_service_id;

created_service_item_ids := array_append(created_service_item_ids, new_service_id);

END IF;
EXCEPTION
WHEN OTHERS THEN
RAISE EXCEPTION ''Error creating accessorial service item with code % for shipment %: %'',
service_item.service_code, shipment_id, SQLERRM;
END;
END LOOP;
END LOOP;

UPDATE moves SET status = ''APPROVALS REQUESTED'' WHERE id = move_id;
END;
'
LANGUAGE plpgsql;
Loading
Loading