Commit Graph

4 Commits

Author SHA1 Message Date
Adrian Flores Cortes
1ad1604fa9 [EPIC-001-T1.4] feat: Add @ManyToOne relations for FK constraints
Added 17 TypeORM relations to align entities with conditional FK constraints:
- Inventory: AlmacenProyecto, RequisicionObra, RequisicionLinea, ConsumoObra
- Purchase: SupplierConstruction, ComparativoCotizaciones, ComparativoProveedor, ComparativoProducto
- HSE: EppInventario, EppMovimiento
- Documents: AccessLog, DocumentShare

Relations to Warehouse, Partner, Product, Uom, AlmacenTemporal, User.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 00:10:31 -06:00
Adrian Flores Cortes
6a64edf4c8 feat(inventory): Add AlmacenProyectoService for project warehouse management
Implements missing service for project-specific warehouse assignments:
- CRUD operations for project warehouse assignments
- Stock queries by project (fraccionamiento)
- Transfer between project warehouses with transaction support
- Project inventory summary with stock value calculations
- Integration with ERP Core inventory tables

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:25:17 -06:00
Adrian Flores Cortes
c8a01c5f14 fix(hr): Fix PaginatedResult format in employee and puesto services
- Remove meta wrapper from PaginatedResult returns in findWithFilters and findAll
- Return flat format with total, page, limit, totalPages at top level
- Align with base.service.ts interface definition
- Controllers already updated to access flat pagination structure
2026-01-25 14:52:53 -06:00
7c1480a819 Migración desde erp-construccion/backend - Estándar multi-repo v2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:11:14 -06:00