Prior years are missing in the drop down menu for check expiration date
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Summary
The user cannot select a year prior to 2021.
Steps to reproduce
- Go to the 'CHECK EXPIRATION DATE' feature within the app.
- Scan or enter a barcode.
- Fill in the required information if in
SelectItemFragment
, or press confirm if inConfirmItemFragment
. - Select the drop down menu for the year.
What is the current bug behavior?
2021 is the first year that appears.
What is the expected correct behavior?
The user should be able to select prior years as the item might have a shelf life of multiple years so an item from 2019 or 2020 may still be good.
Relevant logs and/or screenshots
Possible fixes
Add prior years 2019, 2020 and perhaps a < 2019 option to the menu. Look at SelectPrintedExpirationDateFragment.java.
Labels
NEST
component:check-expiration-date
type::bug
status::accepting-merge-requests
Weight Explanation
Updating the loop that populates the years should be fairly straight forward.