INT-B-21478 Add Oconus Rate area to prime v3 getMoveTaskOrder api #14112
+1,609
−67
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
B-21478
Summary
This PR introduces changes to the Prime V3 getMoveTaskOrder API to return Oconus (ie.. Alaska postal codes) Rate Area for all shipments.
It introduces two new OPTIONAL fields: originRateArea, destinationRateArea:
select * from re_rate_areas where id = '<ID>';
RateArea display is derived off Pickup and Destination postal codes. originRateArea/destinationRateArea will only be present if code is an OCONUS(Alaska) zip code and its location is determined based on shipment type. All non-PPM shipment will display rateArea on the root level of shipment while PPM will display on the PPMShipment level.
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
select distinct state, postal_code from addresses where state = 'AK';
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend