iVendNextDevelopers Request a sandbox

S21 — Field rules for one till theme

The shop's own words and fields on one till theme, with no code: the sale's line reads Product, the customer's card says Stars, the new-customer sheet has no email field, and a new customer needs a phone. Data only.

The recipe: recipes/field_rules.md.

File What it is
manifest.json four rows of the named till theme (PP Partner Till is our test bench's; name the shop's own)
tests/ the manifest against the kit's checker and its refusals, every rule against the published contract

Field rules have no switch: the phone rule is enforced by the server as soon as the manifest installs, the others reach each till at its next start. Uninstalling removes exactly these rows.

python3 -m unittest discover -s samples/s21_field_rules/tests -p 'test_*.py'

This page in the kit