Implement four new services for the quality module (MAI-009):
- CorrectiveActionService: CAPA (Corrective and Preventive Actions)
workflow with create, start, complete, verify, and reopen operations
- NonConformityService: NC lifecycle management with severity-based
SLA, contractor assignment, and status workflow
- InspectionResultService: Recording and batch recording of inspection
results with summary statistics
- TicketAssignmentService: Ticket assignment, reassignment, scheduling,
and technician workload tracking
All services follow the ServiceContext pattern with tenantId.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- construction/torre: Service + Controller for vertical buildings
- construction/nivel: Service + Controller for floor levels
- construction/departamento: Service + Controller for units
- purchase/purchase-order-construction: Controller for PO extensions
- purchase/supplier-construction: Controller for supplier extensions
- quality/checklist: Controller for inspection templates
All endpoints follow existing patterns with multi-tenancy support.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix 8 entities schema from 'quality' to 'construction' to match DDL
- Create ChecklistService with full CRUD, duplication, item management
- Fix InspectionService and TicketService to use local ServiceContext
- Fix InspectionController and TicketController pagination structure
- Update services/index.ts to export ChecklistService
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>