iVendNextDevelopers My apps

S27 — Stock alerts and a draft transfer request

Start an app from this sample

The retailer is told when a store's stock falls below its reorder level, or when a batch is close to its expiry date, and finds a draft stock transfer request already made from those alerts: one per store and day, for a person to check, change and submit. The app never submits anything. iVendNext's own automatic reorder submits at once and has no expiry alert; this app is for the retailer that wants a person in between.

The recipe: Alerts before expiry and below the minimum, and a draft transfer request

Industries: Grocery

Start from it

ivn new acme_stock_alerts --from s27

What to change

What a partner usually changes:

The app runs once each time run.py is started: start it once a day from any scheduler.

More: the recipe.

The customer sets: the source warehouse, the days before expiry and optionally a clearance warehouse in PP STK Settings; the reorder rows on its items (the store, the level, the quantity, the type Transfer), with its own automatic reorder left off; and who holds PP STK Alerts.

Run it

ivn check
ivn try

Then, from service/stk/ in the app you made, with the key of a user that holds your app's role ending Integration (your prefix, then Integration): STK_KEY=… STK_SECRET=… python3 run.py --base https://shop.example. One run each time it starts; start it once a day from any scheduler.

Try it at the till

Versions

0.2.3

0.2.2

0.2.1

0.2.0

0.1.0

Needs this serves

This page in the kit