Overview
The Configuration panel (panel_configuracion.html) provides centralized access to business settings, system preferences, user management, and data operations. Access it from Sistema > Configuración in the sidebar navigation.
Configuration changes affect the entire system. Some settings require administrator privileges.
Configuration Tabs
The configuration interface is organized into five main sections:🏪 Negocio (Business)
Configure your business information and operational details.Business Details
Business Information
Set your business name, tax identification (RFC/NIT/RUC), and contact detailsFields:
- Nombre del Negocio: Your business legal name
- RFC / NIT / RUC: Tax identification number
- Dirección: Full street address
- Ciudad: City name
- País: Country selection (México, Colombia, Argentina, España)
Contact Information
Configure communication channelsFields:
- Teléfono: Business phone number (format: +52 55 0000 0000)
- Correo Electrónico: Business email address
Saving Changes
After modifying business settings:- Review all changes carefully
- Click 💾 Guardar Cambios (Save Changes)
- The system will display a confirmation alert
public/js/configuracion.js:13-16
configuracion.js
👤 Usuarios (Users)
Manage user accounts, permissions, and roles.User management functionality is currently accessed through the employee creation form. See User Management below.
🔔 Notificaciones (Notifications)
Configure notification preferences and alert thresholds.🧾 Facturación (Billing)
Set up invoicing preferences and tax settings.💾 Datos (Data)
Manage data backup, export, and database operations.System Preferences
The configuration panel includes several system-wide toggles:Available Settings
Alertas de Stock Bajo (Low Stock Alerts)
Alertas de Stock Bajo (Low Stock Alerts)
Status: Enabled by defaultDescription: Notify when a product falls below its minimum stock levelImpact: Affects dashboard alerts and notification systemRecommended: Keep enabled to prevent stockouts
Impuesto incluido en precio (Tax Included in Price)
Impuesto incluido en precio (Tax Included in Price)
Status: Disabled by defaultDescription: Display prices with tax already includedImpact: Changes how prices are displayed in the POS and inventoryNote: The POS system currently applies 16% IVA at checkout
Comprobantes automáticos (Automatic Receipts)
Comprobantes automáticos (Automatic Receipts)
Status: Enabled by defaultDescription: Generate PDF receipt automatically after each saleImpact: Creates downloadable receipts for transactionsRecommended: Keep enabled for record-keeping
Modo oscuro (Dark Mode)
Modo oscuro (Dark Mode)
Status: Disabled by defaultDescription: Switch system appearance to dark themeImpact: Changes the entire UI color scheme
Reporte diario automático (Daily Report)
Reporte diario automático (Daily Report)
Status: Enabled by defaultDescription: Send daily summary report via email at end of business dayImpact: Automated email reports to configured address
Toggle Behavior
Toggles in the configuration panel use a simple on/off switch: Source:public/js/configuracion.js:9-11
configuracion.js
User Management
StockPro includes a user creation system for adding employees with different permission levels.Creating New Users
Source:public/js/agregar_empleado.js
The employee creation form allows administrators to add new users to the system:
agregar_empleado.js
User Roles
StockPro supports three user role types:Admin
Full system access including configuration and user management
Gerente
Manager access to reports, inventory, and sales operations
Empleado
Employee access to basic operations like processing sales
User Creation Process
Email Validation
The system checks if the email is already registered using Firebase Authentication
agregar_empleado.js:16-26
Create Authentication Account
Creates a Firebase Authentication account for the new user
agregar_empleado.js:29-30
See Firestore Collections for complete
usuarios schema details.Danger Zone
The configuration panel includes destructive operations that cannot be undone:Available Operations
🗑️ Eliminar todos los productos- Deletes all products from inventory
- Cannot be reversed
- Recommended: Export data first
- Exports current database to backup file
- Clears all data after export
- Use for fresh start or data migration
- Resets all settings to default values
- Removes all custom configurations
- Does not delete products or sales data
Tab Navigation
The configuration panel uses a tab-based interface for organization. Source:public/js/configuracion.js:2-7
configuracion.js
- Click any tab to switch sections
- Active tab is highlighted with
.activoclass - Only one tab can be active at a time
Access Control
The configuration panel is protected by Firebase Authentication: Source:public/js/auth.js:11
auth.js
See Authentication for details on the authentication system.
Related Resources
Security Rules
Configure Firestore security rules for user roles
User Authentication
API reference for user creation and management functions
Firestore Collections
Database schema for usuarios collection
Firebase Setup
Initial Firebase configuration guide