feat: KKT fiscal/non-fiscal mode, multi-KKT per workstation, DTO port per device

- Migration 045: fiscal_mode + dto_port columns on workstation_devices
- Backend: pass fiscal_mode/dto_port to agent in test_device command
- Agent atol.ts: remove global DTO singleton, accept dtoPort per function call
- Agent test_device: returns real KKT info (model, serial, FN, shift status)
- Equipment page: fiscal/non-fiscal toggle + DTO port field when adding KKT
- Equipment page: show fiscal mode badge on device card, DTO port if non-default
- Equipment page: KKT test result shows model, serial, FN, shift status

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 14:06:44 +03:00
parent 2caf717131
commit f882cb2481
4 changed files with 87 additions and 8 deletions

View File

@@ -1007,6 +1007,8 @@ export interface WorkstationDevice {
comPort?: string
purpose: 'fiscal' | 'kitchen' | 'bar' | 'receipt' | 'other'
config: Record<string, unknown>
fiscalMode?: boolean
dtoPort?: number
}
export interface Workstation {