feat: configurable DTO login/password per KKT device

- Equipment page: add login/password fields in KKT fiscal mode form
- Stored in device config JSON (dto_user, dto_pass)
- Backend passes credentials to agent in test_device command
- Agent uses per-device credentials for all ATOL DTO API calls

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 16:20:36 +03:00
parent 8eb83a5189
commit c081ab5c74
2 changed files with 37 additions and 9 deletions

View File

@@ -300,6 +300,8 @@ const workstationRoutes: FastifyPluginAsync = async (fastify) => {
com_port: device.com_port,
fiscal_mode: device.fiscal_mode,
dto_port: device.dto_port,
dto_user: device.config?.dto_user,
dto_pass: device.config?.dto_pass,
},
}) as { ok: boolean; error?: string; message?: string }
return result