Overview
The Inventory module manages three critical inventory types in P.FLEX: tooling (clisés and dies), raw materials, and finished goods. It includes visual rack layouts, Excel import workflows, and real-time stock tracking.Tooling Registry
Complete database of clisés (printing plates) and dies with usage history
Visual Rack Layout
Interactive warehouse map showing physical locations
Finished Goods
Product inventory with quality status tracking (Liberado/Cuarentena/Retenido)
Excel Import
Bulk import with automatic column mapping and conflict detection
Inventory Categories
Clisés (Printing Plates)
Clisés are photopolymer printing plates used in flexographic printing.Dies (Troqueles)
Dies are cutting tools used in the die-cutting stage.Finished Goods (Stock PT)
Product inventory awaiting quality release and dispatch.Visual Rack Layout System
The inventory module includes an interactive warehouse map showing physical locations.Rack Configuration
Example Rack Definition
Auto-Mapping Logic
Items are automatically placed in the correct rack position based on their location code:The layout automatically updates whenever items are added or modified, ensuring the visual map always reflects current inventory.
Finished Goods Management
Stock Item Display
Quality Status Workflow
Release or Hold
- Liberado (Released): Passed inspection, ready for dispatch
- Retenido (Held): Failed inspection, requires rework or scrap decision
Status Badge Styling
Excel Import Workflow
All inventory types support bulk import with intelligent column mapping.Column Mapping Configuration
The system uses flexible mapping to handle various Excel column names:The mapping is case-insensitive and supports accented characters (e.g., “ubicación” or “ubicacion”).
Import Preview Modal
Before committing imports, users review a preview showing valid records and conflicts:Conflict Detection
Conflicts are identified when required fields are missing:KPI Dashboard (Finished Goods)
The stock view displays real-time inventory metrics:Total Millares
Sum of all millares (thousand units) across all finished goods
En Cuarentena
Count of items awaiting quality release
Disponibles (OK)
Count of released items ready for dispatch
Retenidos
Count of held items pending disposition decision
Item History Tracking
Both clisés and dies maintain complete lifecycle history:- Producción: Used in production run (logged with meters/pieces)
- Mantenimiento: Cleaned or serviced
- Reparación: Repaired due to damage
- Cambio Versión: Modified design (new version created)
- Creación: Initial registration in system
- Baja: Retired from service (scrapped)
- Otro: Miscellaneous events
Linked Items
Clisés and dies can be linked to track matching tooling sets:Linked items are used to validate resource availability during production planning. The system can alert if a clisé is assigned but its matching die is unavailable.
Service Architecture
The inventory service uses RxJSBehaviorSubject for reactive state management:
Components subscribe to the
$ observables for automatic UI updates when inventory changes.Related Modules
Production Tracking
Reports consume tooling data and update usage history
Order Management
OTs reference required clisés and dies
Planning
Validates tooling availability before scheduling
Quality Control
Manages finished goods quality status transitions
