We're updating the issue view to help you get more done. 

Notification of near expiry

Description

As a storeroom manager, I want to get notifications for when a product is near expiry so that I can make sure to use it/distribute it first and be attentive to its expiration date.

Acceptance criteria
Verify That:
*Close to expiry notification for a product is 6 months away from expiration (formula: expiration date - Today's date = 6 months)
*Recipient #1 is the user with "Edit stock inventories" right for the facility/program
*Recipient #2 is the user at the next level up who oversees that facility's stock.
*Notification shows Product Name, lot information, date of expiry
*When the user receives a notification, they can click on a link to view the bin card for the close to expiry product.
*Clicking on the second link takes them to an emergency requisition form pre-selected with the facility and program that has no stock
*Email body text appears as follows:
Email Template
– START –
Subject: CLOSE TO EXPIRY Attention Required: <Facility name>, <Product name>
Body:
Dear <user_name>:
This email is informing you that the product <Product Name> with lot number <Lot number> in <program name> at <facility name> will expire in 6 months. Its expiration date is <expiration date>.
Login to view the bin card for this product.
View bin card for <orderable name>: <URL to View BIN CARD>
Thank you
– END –

Status

Assignee

Chongsun Ahn

Reporter

Rachel Powers

Labels

Story Points

8

Time tracking

2h

Components

Sprint

None

Fix versions

Priority

Major