Fixing issue where no data is sent back to the previous fragment from DisplayTrueExpirationFragment
RELATED ISSUES
Closes #222 (closed);
DEPENDENTS
BRANCH ASSOCIATED WITH THIS MERGE REQUEST:
issue_222_data_not_moving_backwards
SUMMARY OF ISSUE/BUG
Currently when you scan an item or input a UPC, and you make it all the way to DisplayTrueExpirationDate, if for whatever reason you have to move backwards through the app, the UPC data is lost - every page that should display the UPC, displays placeholder data instead.
![](/-/project/13830166/uploads/1be280f4795f8dadf31fe98c4885bcbc/Issue222.jpg)
DESCRIPTION OF UPDATE
ResultListeners will be created/updated to better handle the flow of information when moving backwards, such that if a user actually moves backwards from DisplayTrueExpirationDate, said user will see the UPC data that is associated with the item in question.
STEPS TO TEST
- Go to the 'Check Expiration Date' feature within the app.
- Scan or enter a barcode -> you will be taken to SelectItemFragment or ConfirmItemFragment
- Fill in the required information if in
SelectItemFragment
, or press confirm if inConfirmItemFragment
-> you will be taken to SelectPrintedExpirationDateFragment. - Select a random date.
- Press 'Accept' - you will be taken to DisplayTrueExpirationFragment
- Hit the back button
Confirm that upon moving back to SelectPrintedExpirationDateFragment, the UPC is visible across the top of the page.
NOTES
N/A
LABELS
NEST
component:check-expiration-date
type::bug
status::doing