Commit Graph

6 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
6a71183121 feat(MAI-002,MAI-004,MAI-009): Add missing controllers and services
- 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>
2026-01-30 17:39:51 -06:00
Adrian Flores Cortes
598c3215e1 feat(FASE-4A): Complete vertical modules for construction
- MAI-018 Bidding module: entities, services, controllers, DTOs
  - Opportunity, Tender, Proposal, Vendor management
  - Bid calendar, documents, analytics
- Earned Value Management: Curva S, SPI/CPI reports
  - earned-value.service.ts with EV, PV, AC calculations
  - earned-value.controller.ts with 9 endpoints
- DTOs for modules: assets, contracts, documents, purchase, quality
  - 28 new DTO files with class-validator decorators
- Storage module: service and controller implementation
  - Multi-provider support (local, S3, GCS, Azure)
  - File management, upload/download URLs
- Multiple entity and service fixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 07:00:18 -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
Adrian Flores Cortes
63013bb2f4 [MAI-004] feat(purchase): Add construction extensions for purchase orders and suppliers
- Add PurchaseOrderConstruction entity for delivery and quality tracking
- Add SupplierConstruction entity for ratings, specialties and credit terms
- Add PurchaseOrderConstructionService with reception and quality workflows
- Add SupplierConstructionService with evaluation and statistics features
- Update entities and services index files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 08:40:36 -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