A notification a number of days before a date on a retailer's record
The customer asks: A notification a number of days before a date on a retailer's own record, such as a batch's expiry
- Verdict: Ready, with limits (5)
- Door: Manifest · area: Stock and buying › Alerts and reorder
- Recipe: 7. Manifests
- Sample: S27 — Stock alerts and a draft transfer request
- Checked: run on a sandbox 2026-10-21 · POS 2.0.0.658 · S27's reminder package installed: a Days Before notification on Batch, 30 days before its expiry date, to the Stock Manager role, by e-mail, read back, then uninstalled; not run: a message sent (the daily send rests on the product's tests)
What you build
A manifest ships the reminder: a notification on Batch, Days Before its expiry date, to a role, by e-mail or the bell (guide/07_manifests.md, A reminder before or after a date on a retailer's record). Sample S27 carries the package (batch_expiry_package.json).
Limits
- No cap: one message per batch on the day.
- Every holder of the role, in every store, receives every batch: no data filter exists on this version.
- To a role only, by e-mail or the bell; the message is plain text and the record's own fields.
- A template error skips one message; an error outside it (a batch deleted mid-run, a date field removed later) stops that day's run.
- The daily scheduler sends it; a batch with no expiry date raises nothing.
Tell the customer
We install a reminder a number of days before each batch expires, to the role you name, in every store; it is one message per batch, with no filter by store.
What next
- Tell the customer the 5 limits above, and write them into the proposal.
- Read the chapter: 7. Manifests.
- Copy the sample: S27 — Stock alerts and a draft transfer request, and change it.
- Build and test it on your sandbox (request one if you have none; what is on it).
- Run the checks: your own tests, the kit's checks and the money kit's release gate (the release gate).
- Release through the customer's own release gate (The customer's release gate); an app other retailers install goes through the App library.
Install it on your sandbox the way the shop's administrator will; the checker refuses a manifest that declares code.
Related needs
- Alerts before expiry and below the minimum stock, and a draft stock transfer request made from them — Ready, with limits (7)
- The list of stock counts showing the quantity, the difference and the stock value — Ready, with limits (6)
- A reminder per store when its stock falls below a set level — Ready, with limits (4)
Start a project shortlist with this need · Put it in your blueprint · Every need