JEVAPOS MULTI-PRINTER INSTALLATION

1. Install every thermal printer in Windows and print a Windows test page.
2. Copy the exact printer names from Windows Settings > Printers & scanners.
3. In JEVAPOS open Settings > Restaurant Setup > Printer Routing.
4. Create one print station for each computer that physically accesses a printer.
5. Set the Print Agent Server API URL. For an offline LAN use the server computer IP, not localhost, for example:
   http://192.168.1.10/jevapos.com/public/api
   For an online system use, for example:
   https://erp.example.com/public/api
6. Copy the displayed Server API URL, Station Code and Station Token immediately.
7. Download Install-JevaposPrintAgent.ps1 on that computer.
8. Right-click Windows PowerShell and choose Run as administrator.
9. Run:
   powershell -ExecutionPolicy Bypass -File .\Install-JevaposPrintAgent.ps1
10. Enter the Server API URL, Station Code and Station Token when prompted.
11. Return to Restaurant Setup and assign:
    - Customer Bill Station and exact cashier printer name.
    - Default Order Station and exact kitchen printer name.
    - Category-specific stations/printers where required.
12. Set Enable Automatic Print Agent to Yes and save printer routing.
13. Set Printing Mode to Bill and Kitchen Order.
14. Place a test order. The bill should print at cashier and the order at kitchen.

IMPORTANT
- Install the agent once on every computer acting as a print station.
- Do not install the same station credentials on two computers; that may duplicate jobs.
- Both POS computers may place orders. Only configured print stations perform printing.
- The agent starts automatically when its Windows user signs in.
- A one-minute heartbeat watchdog restarts the agent if it stops or becomes unresponsive while Windows still reports it as running.
- Keep the Windows user signed in. Locking the screen is safe, but signing out ends that user's printer session.
- Agent log: C:\JevaposPrintAgent\agent.log
- Watchdog log: C:\JevaposPrintAgent\watchdog.log
- To restart: open Task Scheduler and run JEVAPOS Print Agent.
- If a token is exposed, click New Token in Restaurant Setup and reinstall/update that station.
UPDATING AN EXISTING PRINT AGENT
--------------------------------
Run the installer again. It reuses the existing Server URL, Station Code and Station Token from C:\JevaposPrintAgent\config.json.
The installer replaces the print-agent script and restarts the scheduled task.
Use this after JEVAPOS receipt-layout or print-agent improvements are deployed.
