Introduction
The Production Tracking module is the core operational management system in SASCOP BME SubTec. It enables real-time tracking of production volumes, daily operational status, GPU (Generadores de Precio Unitario) evidence management, and project schedule synchronization.System Architecture
The production tracking system is organized around a hierarchical data structure:Monthly Report (ReporteMensual)
Container for all production activities in a specific month for a work order
Daily Reports (ReporteDiario)
Daily operational status tracking (Productive, Non-productive, Standby)
Core Data Models
ReporteMensual Model
Represents the monthly folder containing all production and operational data.Key Features:
- Unique constraint ensures one monthly report per OT per month
- Stores Google Drive link for consolidated evidence
- Tracks closure status for monthly closeout process
ReporteDiario Model
Controls the operational status for each day within a monthly report.Produccion Model
Records actual production volumes for budget line items.Production Type Classification:
- TE (Tiempo Efectivo): Production during regular working hours
- CMA (Costo Mínimo Aplicado): Production during minimum cost periods (downtime with guaranteed payment)
RegistroGPU Model
Manages photographic evidence and administrative tracking for C-2 and C-3 annexes.Production Workflow
Select Site and Month
Navigate to production tracking and select the operational site and target month
Record Daily Status
Mark each day as Productive, Non-productive, or Standby in the daily report grid
Key Features
Multi-Site Tracking
Track production across multiple operational sites (platforms, vessels, yards)
Excess Detection
Automatic flagging when cumulative production exceeds authorized volumes
Time Classification
Separate tracking for Effective Time (TE) and Minimum Cost Applied (CMA)
Financial Integration
Production data feeds directly into billing estimation modules
API Endpoints
Production tracking exposes several REST endpoints for data operations:GET /produccion/obtener_sitios_con_ots_ejecutadas/
GET /produccion/obtener_sitios_con_ots_ejecutadas/
Returns all sites with active work orders in execution status.Response:
GET /produccion/ots_por_sitio_grid/
GET /produccion/ots_por_sitio_grid/
Returns work orders for a specific site with daily status data for the grid.Parameters:
id_sitio: Site IDmes: Month (1-12)anio: Year (e.g., 2025)
- Work order details
- Daily status matrix (31 columns)
- Blocked days based on OT validity
POST /produccion/guardar_reportes_diarios_masiva/
POST /produccion/guardar_reportes_diarios_masiva/
Bulk saves daily reports for multiple work orders.Payload:
GET /produccion/obtener_partidas_produccion/
GET /produccion/obtener_partidas_produccion/
Returns consolidated budget line items with production data for the grid.Parameters:
id_ot: Work order IDmes: Monthanio: Yeartipo_tiempo: ‘TE’ or ‘CMA’id_sitio: Site ID
- Consolidates volumes across OT family (initial + reprogramming)
- Groups by annex with subtotals
- Calculates excess flags
- Returns financial totals (MXN, USD)
POST /produccion/guardar_produccion_masiva/
POST /produccion/guardar_produccion_masiva/
Bulk saves production volumes for multiple line items.Features:
- Automatic GPU registry creation for C-2/C-3 annexes
- Running total calculation for excess detection
- Respects blocked days
Database Relationships
Next Steps
Daily Reports
Learn how to manage daily operational status tracking
Monthly Reports
Understand monthly report consolidation and closure
GPU Management
Manage photographic evidence for pricing generators
Schedule Tracking
Import and track Microsoft Project schedules