-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
There was a problem hiding this 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)(¶ms.SitEntryDate) | |||
ppmShipment.SITEstimatedDepartureDate = (*time.Time)(¶ms.SitDepartureDate) | |||
ppmShipment.SITEstimatedWeight = handlers.PoundPtrFromInt64Ptr(¶ms.WeightStored) | |||
sitExpected := true |
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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
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.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend