Quality Control
The Quality Control module provides comprehensive tools for monitoring production quality, managing non-conformance reports (NCRs), and analyzing measurement history with visual conformity indicators.
Overview
This module serves as the central hub for quality assurance activities, combining real-time conformity monitoring with structured NCR (Non-Conformance Report) workflows for defective batches.Module Structure
The Quality Control interface is organized into two main tabs:- NCR Management
- Measurement History
Create, track, and resolve non-conformance reports for batches that fail quality standards.
NCR Management
What is an NCR?
A Non-Conformance Report (NCR) is a formal documentation of a product defect or quality deviation. NCRs track:- Defect parameters (pH, solids, appearance)
- Severity level
- Affected volume (liters)
- Root cause analysis
- Corrective actions
- Final disposition (rework, downgrade, scrap)
NCR Workflow
Detection
Quality team identifies non-conforming batch from measurement history or production floor inspection.
Report Creation
Create NCR with:
- Batch code reference
- Defect parameter (pH / Sólidos / Apariencia)
- Severity (MAYOR / MENOR / CRITICO)
- Defect details
- Liters involved
Investigation
Quality team:
- Reviews measurements
- Identifies root cause
- Proposes corrective action
- Communicates via comments
Disposition
Manager determines final action:
- REWORK: Reprocess batch
- DOWNGRADE: Sell as lower grade
- SCRAP: Dispose batch
- APPROVE: Release with deviation
NCR Status Flow
ABIERTO (Open)
ABIERTO (Open)
Newly created NCR awaiting initial review. Quality team must begin investigation.
EN INVESTIGACION (Under Investigation)
EN INVESTIGACION (Under Investigation)
Active investigation in progress. Root cause analysis and corrective action proposal underway.
DISPOSICION (Disposition)
DISPOSICION (Disposition)
Manager has determined final action. Awaiting execution of disposition decision.
CERRADO (Closed)
CERRADO (Closed)
NCR fully resolved. Disposition executed and corrective actions verified.
ARCHIVADO (Archived)
ARCHIVADO (Archived)
Historical record. No longer active but retained for audit trail.
NCR Detail View
Clicking an NCR opens a comprehensive detail page (/calidad/ncr/{id}) showing:
Header Information
- NCR Number and Status Badge
- Creation Date and Author
- Batch Code with link to measurement
- Branch and Product
- Defect Parameter and Severity
- Liters Involved
- Defect Description
- Root Cause Analysis
- Reported Appearance (if applicable)
- Disposition Type (Rework / Downgrade / Scrap / Approve)
- Liters Recovered
- Disposition Date
- Recovery Percentage Calculation
- Internal comments thread
- User avatars and timestamps
- Quality team collaboration
Creating an NCR
Prerequisites: Non-conforming batch must exist in measurement history.- Navigate to Quality Control > Measurement History
- Identify non-conforming batch (red badge)
- Click batch row to open NCR creation dialog
- Complete required fields:
- Defect Parameter: pH / Sólidos / Apariencia
- Severity: MAYOR / MENOR / CRITICO
- Defect Detail: Description of defect
- Liters Involved: Affected volume
- Submit to create NCR
NCRs are automatically linked to the originating batch measurement for full traceability.
Measurement History
Overview Table
The measurement history displays all production batches with visual quality indicators: Columns:- Lote: Batch code (font-mono format)
- Producto/Sucursal: Product code and branch
- pH: Measured value with reference range
- % Sólidos (Avg): Average of two measurements with spec/tolerance limits
- Estado: Conformity badge (CONFORME / SEMI-CONFORME / NO CONFORME)
- Apariencia: Visual characteristics with expected standard
- Fecha: Manufacturing date
- Preparador: Preparer name (admin view only)
- Acciones: Edit/Delete buttons (admin only)
Conformity Indicators
CONFORME
Green badge indicates all parameters within specification.% Solids between red lines (spec min-max).
SEMI-CONFORME
Yellow badge indicates parameters within tolerance range.% Solids between yellow lines (±5% tolerance).
NO CONFORME
Red badge indicates parameters outside tolerance.% Solids beyond yellow tolerance limits.
KPI Dashboard
At the top of the measurement history, four KPI cards display:-
Total Muestras (Total Samples)
- Count of all filtered records
- Blue gradient card
-
Total Conformes (Total Conforming)
- Count and percentage of conforming batches
- Green gradient card
- Shows FTQ (First Time Quality) metric
-
Semi-Conformes (Semi-Conforming)
- Count and percentage of tolerance-range batches
- Yellow gradient card
-
No Conformes (Non-Conforming)
- Count and percentage of failing batches
- Red gradient card
- Triggers NCR creation
Advanced Filtering
The measurement history includes comprehensive filters:- Search
- Time Range
- Sucursal
- Status
Text search across:
- Batch code (lote)
- Product code
- Branch name
Record Management
Editing Records (Admin Only)
Administrators can edit quality parameters:- pH value
- Solids measurements (M1, M2)
- Appearance
- Color
- Aroma
Deleting Records (Admin Only)
Permanent deletion with cascade:- Batch record removed
- Associated NCRs deleted
- NCR comments removed
- NCR dispositions removed
Access Control
Role-Based Permissions
- Preparador (Operator)
- Gerente Sucursal (Branch Manager)
- Gerente Calidad (Quality Manager)
- Coordinador / Admin
View: Own records onlyActions:
- View measurement history (filtered to own batches)
- Cannot create NCRs
- Cannot edit or delete
Mobile Responsiveness
The measurement history adapts to mobile devices:- Desktop: Full table view with all columns
- Mobile: Card-based layout with key metrics
- Touch-optimized buttons
- Swipe-friendly filters
Real-Time Updates
The module uses Supabase real-time subscriptions to auto-update:- New batch measurements appear instantly
- NCR status changes reflected immediately
- No manual refresh required
The refresh button (top-right) forces a manual data reload if needed.
Best Practices
When to Create an NCR
When to Create an NCR
Create an NCR when:
- Batch shows red “NO CONFORME” badge
- % Solids outside yellow tolerance lines
- pH significantly out of specification
- Appearance defects (separation, particles, turbidity)
- Customer complaint received
Root Cause Analysis
Root Cause Analysis
Investigate potential causes:
- Raw material batch variation
- Equipment calibration drift
- Process parameter deviation
- Operator training gap
- Environmental conditions
Corrective Action
Corrective Action
Address root cause:
- Immediate: Isolate affected batch
- Short-term: Adjust process parameters
- Long-term: Update procedures, retrain staff
- Verification: Monitor next batches
Disposition Decision
Disposition Decision
Consider:
- Severity of defect
- Volume affected
- Economic impact
- Rework feasibility
- Customer requirements
Related Modules
- Production Logbook - Create new batch measurements
- Reports & Analytics - Analyze quality trends
- Product Catalog - View product specifications
