fix(pos): default tenant ID en login para evitar error sin parametro URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 08:47:37 +00:00
parent 7810005a57
commit 5244c1dcd6

View File

@@ -1125,7 +1125,8 @@
------------------------------------------------------------------ */ ------------------------------------------------------------------ */
// Get tenant_id from URL or localStorage // Get tenant_id from URL or localStorage
var tenantId = new URLSearchParams(window.location.search).get('tenant') var tenantId = new URLSearchParams(window.location.search).get('tenant')
|| localStorage.getItem('pos_tenant_id'); || localStorage.getItem('pos_tenant_id')
|| '11'; // Default tenant — remove in production when multi-tenant selector exists
// Device ID (persistent) // Device ID (persistent)
var deviceId = localStorage.getItem('pos_device_id'); var deviceId = localStorage.getItem('pos_device_id');
if (!deviceId) { if (!deviceId) {