GG-CE INV: Discard material
Why: To conveniently register dead material in the database, leading to those inventories being flagged for increase.
Technicians collect all tubes that show signs of contamination and take them out of the slow growth chamber. Each tube is scanned to record 1
decrement in current inventory quantity. A scan of the same quantity increments the number of tubes for discard.
Add a new UI page at /invitro/discard titled "Discard material".
A two phase input is used to create the list:
- Initial scan to put items on the list: adds the scanned inventory to the list and sets discard quantity to
1
, ordiscard + 1
if already on the list.
- 2nd scan is a recount: Repeat scan of items in the list to check and confirm the discard quantity in the list.
- Clicking "Confirm": API call to update
quantityOnHand
by the confirmed quantities (need new API endpoint).
The elements of the list are stored in localStorage
so the user can navigate away from the page and return to it later and resume where they left off.