Determining the actual/true expiration date
This is related to issue #88 (closed) and issue #89 (closed) - once the item has been found in the local database, the length of time past the printed expiration date has been retrieved and the printed expiration date has been entered, the new expiration date must be calculated and displayed. This is the final step for letting the NEST volunteer know if the item is safe to put/keep on the shelf. This requires designing the UI to display the information and the java code to perform the calculation.
- fragment_display_true_expiration: shows the true expiration date for the item (and a synopsis of the item including the UPC, category, item, expiration date)
- DisplayTrueExpirationFragment: calculates the true expiration date based upon the printed expiration date and the data from the Foodkeeper api (look at code in FinalDate.java) - this will be done as part of issue #91 (closed)
The length of time past the printed expiration date will vary in its format. The data will be from https://foodkeeper-api.herokuapp.com
using a sample call like: https://foodkeeper-api.herokuapp.com/products/category/23
. The dop_pantryLife field is the one that will be used.
NOTE: when using code from other java files be sure to cite it in your commit message - for example,
git commit -m "Copied the scanner code from Scanner.java to ScanFragment.java and updated to work from within a fragment"