S20 — Warranty capture and a member code (capture)
Three capture services, each at its own address. On scan of an item in the named item groups, the service answers with a warranty reference for the line, and the cashier confirms it. On customer add, it refuses a customer without a mobile number or with a barred one, and otherwise sends a one-time code: the customer is created only after the right code, and a wrong code is counted. On a quantity change of a line in the iPad group, it asks above the limit you set and refuses above the most you set; with none set, it allows. No answer writes a customer field or moves money.
The recipe: A value captured at the scan, and a code before a new customer (capture)

Industries: Electronics and phones
Start from it
ivn new acme_capture --from s20
What to change
What a partner usually changes:
- first, the item groups each service asks about:
item_groupsin each service'ssettings. The sample names iPhone and iPad, and a site without those groups refuses the install, so write the customer's own; - the service addresses:
allowed_urlsand each service'sendpoint_urlinmanifest.jsonname the sample's test address; write your own; - the handset count:
PP_QTY_ASK_ABOVEandPP_QTY_MOST; blank means no limit; - the barred numbers:
PP_BARRED_PHONES; - the line attribute that holds the warranty reference:
PP_LINE_ATTRIBUTE; - your message gateway:
CAP_MESSAGE_URLis posted the phone and the code; with none, a customer is added with no code.
A serial- or lot-tracked line is never asked about a quantity change, so name only groups the retailer sells without serial numbers.
More: the recipe.
The customer sets: an active line attribute (Transaction Item Attribute) for the warranty reference, and the phone numbers the service bars.
Run it
ivn check
ivn try
Try it at the till
- Scan an iPhone; the till shows a warranty reference. Press Add with these details.
- With your message gateway set, add a new customer; the till asks for the code just sent to their mobile.
- The Handset count service, on a quantity change, has not yet been pressed on a till by us; it ran in the laptop tests, and the till's side of a quantity change was walked by the product.
- Close the till day when you are done.
Versions
0.4.1
- When the service is down a new customer goes on and is flagged, unless the customer chooses to refuse it; blank quantity limits mean no limit.
0.4.0
- New app makes it into an app we host, for many sites (
Hostedinservice/app.py,app.json); codes are kept so any copy can check them.
0.3.0
- A third capture, Handset count, asks on a quantity change (POS build 2.0.0.654 or later).
- The README says to put your own service's address in the manifest before you install.
0.1.0
- First version in the kit: a warranty reference on scan, and a member code when a customer is added.
Needs this serves
- A beep and a yes-or-no question when the cashier scans an item we flagged — Ready, with limits (2)
- A one-time code sent to the customer before a new customer is made at the till — Ready, with limits (2)
- A question when the quantity of a line changes, before Pay — Ready, with limits (5)
- A warning when an item is scanned (another batch has less shelf life), with the cashier tapping to carry on — Ready, with limits (5)