SmartGene POS 0.8.3 - offline-first supermarket till (Ghana: GHS, VAT/NHIL/GETFund, MoMo, GRA E-VAT)
==================================================================================================

START
  Linux (.deb):      sudo apt install ./smartgene-pos_0.8.3_amd64.deb      then run:  smartgene-pos
  Linux (portable):  tar xzf smartgene-pos-0.8.3-linux-x64.tar.gz           then run:  smartgene-pos/bin/smartgene-pos
  Windows portable:  unzip, put node.exe (Node.js 22.5+) in runtime\, double-click "Start SmartGene POS.cmd"

  The till opens in Chromium / Chrome / Edge as two windows: the cashier screen and the customer
  display (second monitor). If no browser is found, open http://127.0.0.1:47231/ (customer display: /cfd).

FIRST USE (demo mode, sample data)
  Cashier:     employee 101, PIN 2580   (badge 04A1B2C3)
  Cashier:     employee 102, PIN 3691
  Supervisor:  employee 900, PIN 7413   (approvals: type 900:7413, or badge 04FFEE11)
  Change these PINs before any real use. The yellow "Demo tools" button simulates the scale, the customer's
  MoMo phone, the card terminal and GRA E-VAT.

WHERE THINGS ARE
  smartgene-pos --where     shows the data folder, config file and database
  smartgene-pos --backup    writes a consistent database copy into the data folder
  Data folder:  Linux ~/.local/share/smartgene-pos    Windows %LOCALAPPDATA%\SmartGenePOS
  lane.config.json:  store and till identity, mode (demo / training / live), printer, scale, scanner prefix, kiosk

HARDWARE (lane.config.json -> hardware)
  printer: {"type":"tcp","host":"192.168.1.50","port":9100,"columns":48}      network ESC/POS printer
           {"type":"serial","path":"/dev/ttyUSB0","baudRate":115200,"columns":48}   (Windows: "COM4")
           {"type":"usb-lp","path":"/dev/usb/lp0","columns":48}                Linux USB printer class
  scale:   {"type":"serial","path":"/dev/ttyUSB1","baudRate":9600,"protocol":"mt-sics"}
  scanner: keyboard-wedge scanners work as-is; set "scannerPrefix" (e.g. "F13") if the scanner sends one.
  Serial ports need permission: on Linux add the user to the "dialout" group.

MODES
  demo      simulated payments and E-VAT, sample catalogue, receipts say DEMO MODE
  training  as demo, receipts say TRAINING and sales are excluded from reports
  live      refuses to start until the GRA E-VAT (VSDC) and payment provider connectors are installed
