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 20744 int Fix error when Customer doesn't select SIT Expected #13280

Merged
merged 15 commits into from
Jul 24, 2024

Conversation

r-mettler
Copy link
Contributor

@r-mettler r-mettler commented Jul 18, 2024

B-20744

Summary

This fixes a bug when the Customer selects No to SIT Expected question during PPM shipment creation but then a storage type moving expense is later created. The bug is when the Service Counselor attempts to view and submit the approval for the Storage type moving expense on the Review Documents page.

To resolve this we know that since a moving expense of Storage was submitted that SIT was indeed selected so we set the SIT Expected value to true.

Verification Steps for the Author

These are to be checked by the author.

  • Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
  • Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

How to test

  1. As a Customer create a new PPM shipment
  2. When asked make sure you select SIT Expected to No
  3. Submit the shipment
  4. Login as a Service Counselor and fix the Orders section and submit the move
  5. Login as the Customer again and click Upload PPM Documents
  6. Fill out the first and second pages
  7. On the third page under Expenses at the bottom and add a new Expense
  8. Make sure the expense is STORAGE type
  9. Fill out fields
  10. Click Save
  11. Click Save on the next page
  12. Submit your documents
  13. Login as the SC again, go to the PPM Closeout Queue and select your shipment
  14. Click the Review Documents button
  15. Click Accept on the first document and click Continue
  16. Verify there aren't any "Something went wrong" error messages like in this screenshot
    image
  17. Make sure all fields are filled out and click Accept and Continue
  18. Make sure you don't see any errors

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

@r-mettler r-mettler added Scrummy Bears Scrum Team H INTEGRATION Slated for Integration Testing labels Jul 18, 2024
@r-mettler r-mettler self-assigned this Jul 18, 2024
@r-mettler r-mettler requested a review from a team as a code owner July 18, 2024 23:16
Copy link
Contributor

@antgmann antgmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant solution and the testing steps worked. I've already merged this into 20740 to minimize conflicts.

@@ -77,6 +77,8 @@ func (h GetPPMSITEstimatedCostHandler) Handle(params ppmsitops.GetPPMSITEstimate
ppmShipment.SITEstimatedEntryDate = (*time.Time)(&params.SitEntryDate)
ppmShipment.SITEstimatedDepartureDate = (*time.Time)(&params.SitDepartureDate)
ppmShipment.SITEstimatedWeight = handlers.PoundPtrFromInt64Ptr(&params.WeightStored)
sitExpected := true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpicking. We might want to add a little comment why we are setting it true "since a moving expense of Storage was submitted that SIT was indeed selected so we set the SIT Expected value to true." It might not be obvious because this handler is a GET and not PATCH ..etc..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added comments to both files as to why we are setting sitExpected to true

@r-mettler r-mettler merged commit 58c901a into integrationTesting Jul 24, 2024
27 of 29 checks passed
@r-mettler r-mettler deleted the B-20744-INT branch July 24, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INTEGRATION Slated for Integration Testing Scrummy Bears Scrum Team H
Development

Successfully merging this pull request may close these issues.

3 participants