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 21474 int calculate mileage using dtod for ak oconus shipments #14550

Draft
wants to merge 74 commits into
base: integrationTesting
Choose a base branch
from

Conversation

joeydoyecaci
Copy link
Contributor

B-21474

Summary

Adds the ability to use DTOD to calculate mileage if either destination or pickup addresses are OCONUS to support calculation of RDD

###Setup
A breakpoint is required for the following lines
pkg/services/mto_shipment/mto_shipment_updater.go:1226
pkg/services/mto_shipment/mto_shipment_updater.go:1228

How to test

[important] Debugger must be enabled as RDD is not currently displayed

  1. Create a new customer with a new HHG shipment. One of the addresses in the shipment should be Alaska
  2. Submit shipment as SC like normal, approve the shipment as TOO
  3. Update the shipment as a Prime user with all required fields, including a weight.
  4. In calculate CalculateRequiredDeliveryDate verify that the country is being populated for both the addresses on lines 1208 and 1216
  5. With the breakpoints set step through the statements and verify useDTOD is set to true before planner.ZipTransitDistance is run
  6. step through planner.ZipTransitDistance and verify that DTOD is called to calculate the mileage
  7. verify that a nonzero mileage is being returned for planner.ZipTransitDistance

@joeydoyecaci joeydoyecaci self-assigned this Jan 9, 2025
@joeydoyecaci joeydoyecaci added the INTEGRATION Slated for Integration Testing label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INTEGRATION Slated for Integration Testing
Development

Successfully merging this pull request may close these issues.

8 participants