S19 — Unit codes at the scan (a scan source)
The retailer's own unit codes, read by the till's scan: one record per unit (its unique code, its item, its batch, Available or Sold) and a scan source over that table. A scanned unit lands as its item with its batch; a unit marked Sold is refused. Data only: no service, nothing leaves the retailer's iVendNext.
The recipe: Unit codes at the scan (a scan source)
In the App library: Unit codes at the scan

Industries: Beauty and cosmetics, Electronics and phones, Pharmacy
Start from it
ivn new acme_units --from s19
What to change
What a partner usually changes:
- The unit's fields:
unit_code,item,batchandstatuson the recordPP UNC Unitinmanifest.json. - The scan source:
PP UNC Unitsinmanifest.json, which reads that table. - Marking a unit Sold and Available: the app does not. Your own service sets Sold after a sale and Available after a return, from the event feed (the event feed recipe).
More: the recipe.
The customer sets: the units (one record per unit in Desk, or written by your service), and, if the sale's line should keep the unit's code, Record the code as on the scan source, set to one of its own active line attributes.
Run it
ivn check
ivn try
Try it at the till
- In Desk, open Retail Scan Source and open the app's units.
- Scan a unit's code; it lands on the sale as its item, with its batch. Scan a sold unit; the till refuses it.
- Close the till day when you are done.
Versions
0.1.3
- Desk shows plain names (Unit code) through the manifest's
translationsblock, so a search for unit code finds the record. The stored names are unchanged: an installed site keeps its records.
0.1.2
- The README's first lines say a unit marked Sold is refused: nothing marks a unit Sold until the retailer's own step or service does. The manifest changes only its version.
0.1.1
- The description a chain reads at install says a chain's own unit codes and nothing leaves your site; no behaviour changes.
0.1.0
- First version in the kit: unit codes read at the scan, as a scan source.
Needs this serves
- Read a pharmacy pack's 2D code at the scan, and refuse an expired pack — Ready, with limits (2)
- Scan a unit's own barcode or a handset's tag, and refuse a unit already sold — Ready, with limits (3)