Overview
Tolerances define the maximum acceptable quantity and cost of scrap for a specific target (global, area, chain, line, or category) over a time period (daily, weekly, or monthly).Multi-Level Targets
Set limits globally or for specific areas, chains, lines, or categories
Flexible Periods
Configure daily, weekly, or monthly monitoring windows
Dual Thresholds
Track both quantity (pieces) and cost (USD) limits
Progressive Alerts
Green → Yellow → Red status based on percentage consumed
Tolerance Structure
Each tolerance is defined by:Example Tolerance:This tolerance alerts when Assembly area exceeds 400 pieces (80% of 500) or 1500) in a single day.
Tolerance Types
- Global
- Area
- Chain
- Line
- Category
Target: Entire operationUse Case: Company-wide scrap reduction goalsExample: “Total scrap must not exceed 5000 pieces/month”No filtering applied — all records counted.
Time Periods
Tolerances can monitor daily, weekly, or monthly windows:Daily Tolerance
- Window: Midnight to midnight
- Reset: Automatically at 00:00
- Use: Short-cycle production
Weekly Tolerance
- Window: Monday 00:00 to current time
- Reset: Every Monday
- Use: Weekly production planning
Monthly Tolerance
- Window: 1st of month 00:00 to current time
- Reset: 1st of each month
- Use: Monthly KPI tracking
Status Calculation
Tolerances have three status levels based on percentage consumed:Status Levels
🟢 Green (Within Meta)
Condition:
maxPct < porcentaje_alertaMeaning: Scrap is below alert thresholdExample: 65% of limit consumedAction: Normal operation, no concern🟡 Yellow (Warning)
Condition:
porcentaje_alerta <= maxPct < 100Meaning: Approaching limitExample: 85% of limit consumed (alert set at 80%)Action: Review processes, prepare corrective actionDual-Threshold Logic
The status uses the higher of quantity or cost percentage:- Quantity: 400 / 500 = 80% ✅
- Cost: 1500 = 93% ⚠️
- Overall Status: 🟡 Yellow (93% is higher)
This ensures alerts trigger if either quantity or cost exceeds the threshold, providing comprehensive monitoring.
Tolerance Configuration
Navigate to Tolerances
Click Pérdida Tolerable in the admin menu (requires
manage_tolerances permission).Fill Configuration
Example Configuration:
- Name: “Assembly Area Weekly Limit”
- Target Type: Por Área
- Target: Assembly (dropdown auto-populates with active areas)
- Period: Semanal
- Max Quantity: 2000 pieces
- Max Cost: $5000 USD
- Alert %: 80
Tolerance Display
Tolerances appear in two places:1. Tolerances Page
- Grouped by tabs (Global, Cadena, Línea, Área, Categoría)
- Progress bars for quantity and cost
- Status badge with color coding
- Edit/Delete buttons
2. Dashboard Widget
- Compact card layout
- Responsive grid (auto-fit)
- Animated pulse on exceeded status
- Quick at-a-glance monitoring
Summary Statistics
The Tolerances page displays an overview:Total Configured
Number of active tolerances
Within Meta
Count of green tolerances
In Warning
Count of yellow tolerances
Exceeded
Count of red tolerances — requires immediate action
Edit & Delete
- Edit Tolerance
- Delete Tolerance
- Click the Edit (pencil) icon on a tolerance card
- Modal opens with pre-filled values
- Modify any field
- Click Guardar
Changes take effect immediately. The status recalculates with current data.
Dynamic Target Selection
The “Objetivo” dropdown dynamically populates based on target type:- Select “Por Área” → Dropdown shows: Assembly, Paint, Welding, etc.
- Select “Por Categoría” → Dropdown shows: Material, Process, Quality, etc.
- Select “Global” → No dropdown (applies to all)
Permissions
Only users withmanage_tolerances permission can access:
- ❌ Operator — No access
- ❌ Supervisor — No access
- ✅ Quality — Can configure tolerances
- ✅ Admin — Full access
All users can view tolerance status on the dashboard, but only Quality/Admin can configure them.
Best Practices
Setting Realistic Limits
Setting Realistic Limits
- Analyze historical data (3-6 months)
- Set quantity max at 80th percentile of historical highs
- Set cost max based on budget allocation
- Start with 80% alert threshold, adjust based on team response
Choosing Time Periods
Choosing Time Periods
- Daily: Fast-paced production, high-volume lines
- Weekly: Standard manufacturing cycles
- Monthly: Strategic planning, budgeting
Granularity Strategy
Granularity Strategy
Start broad, then narrow:
- Set global monthly tolerance
- Add area-level weekly tolerances
- Add problematic line daily tolerances
- Add category-specific limits for high-cost defects
Alert Threshold Tuning
Alert Threshold Tuning
Common values:
- 70% — Very aggressive, early warning
- 80% — Standard, balanced approach
- 90% — Conservative, late warning
- Team response time
- Corrective action effectiveness
- Historical alert accuracy
Troubleshooting
Tolerance always shows red
Tolerance always shows red
Causes:
- Max limits set too low (unrealistic targets)
- Historical data skews calculation
- Wrong target selected (e.g., filtering by wrong area)
- Review last period’s actual scrap
- Increase max quantity/cost
- Verify target ID matches intended area/chain
Tolerance not appearing on dashboard
Tolerance not appearing on dashboard
Causes:
activoflag is 0 (inactive)- Target type mismatch (e.g., selected area that doesn’t exist)
- No scrap data matches the filter
- Check tolerance is marked active
- Verify target ID exists in catalog
- Register some scrap to test
Percentage seems incorrect
Percentage seems incorrect
Check:
- Both quantity AND cost are tracked — status uses the higher percentage
- Time period window (daily resets at midnight, weekly on Monday)
- Soft-deleted records are excluded (
ELIMINADO = 1)
Related Pages
Dashboard
View live tolerance status with visual alerts
Reports
Analyze scrap trends to inform tolerance limits
Catalog Management
Manage areas, chains, and categories used in tolerances