Overview
The Settings page is organized into four main configuration areas accessible via a sidebar navigation:Company Settings
Configure legal business information for SUNAT compliance
Branch Management
Manage multiple business locations and service centers
Billing Series
Configure document series for invoices and receipts
User Management
Control user accounts and role assignments
Company Settings
Configure your business’s legal and contact information used for electronic invoicing and SUNAT compliance.Required Fields
Peruvian tax identification number (RUC). Must be 11 digits.
Legal business name registered with SUNAT
Commercial or trade name displayed to customers
Primary business address
Primary contact phone number
Business email for invoices and notifications
URL or path to company logo (displayed on invoices)
SUNAT digital certificate for electronic billing authentication
Example Configuration
Company information is used on all electronic invoices sent to SUNAT. Ensure all details are accurate and match your SUNAT registration.
Branch Management
Manage multiple service locations with independent operations and document numbering.Branch Structure
Each branch represents a physical location where services are performed and invoices are issued:Branch Operations
- Independent Billing: Each branch can have its own document series
- User Assignment: Staff can be assigned to specific branches
- Location Tracking: Sales and services are tagged by branch for reporting
View Branch Configuration Example
View Branch Configuration Example
src/data/mock/branches.ts
Billing Series Configuration
Document series control the numbering sequence for invoices (FACTURA) and receipts (BOLETA) issued at each branch.Series Structure
Document Types
FACTURA (Invoice)
FACTURA (Invoice)
Tax invoices issued to businesses (RUC holders). Required for business-to-business transactions.
- Series format:
F###(e.g., F001, F002) - Requires customer RUC
- Includes full tax breakdown
- SUNAT validation required
BOLETA (Receipt)
BOLETA (Receipt)
Simplified receipts issued to individuals (DNI holders) or consumers.
- Series format:
B###(e.g., B001, B002) - Can use DNI or no document
- Simplified tax treatment
- SUNAT validation required for amounts over threshold
Series Assignment
src/data/mock/documentSeries.ts
User Management
Control user accounts, role assignments, and branch access permissions.User Roles
MotorDesk supports four user roles with different permission levels:DUEÑO (Owner)
Full system access, can configure company settings and manage all users
ADMINISTRADOR (Admin)
Manage operations, users, and products. Cannot change company legal settings.
VENDEDOR (Seller)
Issue invoices, manage customers and vehicles. Cannot delete records or manage products.
CAJERO (Cashier)
Issue receipts and basic sales. Limited access to configuration.
User Structure
Permission Matrix
| Action | Owner | Admin | Seller | Cashier |
|---|---|---|---|---|
| Configure company | ✅ | ❌ | ❌ | ❌ |
| Manage users | ✅ | ❌ | ❌ | ❌ |
| Add/delete products | ✅ | ✅ | ❌ | ❌ |
| Edit product prices | ✅ | ✅ | ✅ | ✅ |
| Add customers/vehicles | ✅ | ✅ | ✅ | ✅ |
| Delete customers/vehicles | ✅ | ✅ | ❌ | ❌ |
| Issue invoices | ✅ | ✅ | ✅ | ✅ |
| Void invoices | ✅ | ✅ | ❌ | ❌ |
Permissions are enforced via the
usePermissions hook which checks the user’s role and returns boolean flags for each operation.Access Control
Role-Based Access
Only Owners have access to the Settings page and can modify configuration:src/hooks/usePermissions.ts
Branch-Level Access
Users can be restricted to specific branches:src/hooks/useMainLayout.ts
Configuration Workflow
Initial Setup
On first login, the Owner configures company information including RUC, legal name, and SUNAT certificate.
Add Branches
Create entries for all physical service locations. Mark the main location as
esMatriz: true.Configure Series
Set up document series for each branch. Each location needs at least one FACTURA series and one BOLETA series.
Settings Hook
The Settings page uses theuseSettings hook to manage state:
src/hooks/useSettings.ts
Best Practices
Company Configuration
Company Configuration
- Keep company information up to date with SUNAT registration
- Back up your SUNAT certificate securely
- Use a dedicated business email for invoice notifications
- Update certificate before expiration to avoid service interruption
Branch Management
Branch Management
- Use clear, descriptive branch names (include location)
- Keep branch contact information current
- Don’t delete branches with historical data - deactivate instead
- Assign each employee to their primary working branch
Series Configuration
Series Configuration
- Never reuse or modify series numbers once documents are issued
- Keep separate series for each branch to simplify auditing
- Monitor series numbers approaching 9999999 (SUNAT limit)
- Deactivate old series rather than deleting them
User Management
User Management
- Follow principle of least privilege (assign minimum required role)
- Regularly review and update user access
- Disable accounts for former employees immediately
- Use strong passwords and consider 2FA for Owners and Admins
Related Documentation
- User Roles & Permissions - Detailed role permission guide
- Authentication - Login and user session management
- Multi-Branch Operations - Working with multiple locations
- Sales & Billing - Using configured series for invoicing
