Adrian Flores Cortes
5f9c30d268
[MAE-015] feat: Implement assets module backend
...
Complete implementation of the Assets/Machinery/Maintenance module:
Entities (10):
- AssetCategory: Hierarchical asset categorization with depreciation config
- Asset: Main asset entity (machinery, vehicles, tools, equipment)
- AssetAssignment: Asset-to-project assignments tracking
- WorkOrder: Maintenance work orders with workflow
- WorkOrderPart: Parts/materials used in work orders
- MaintenancePlan: Preventive maintenance plans
- MaintenanceHistory: Historical maintenance records
- FuelLog: Fuel consumption tracking with efficiency calculation
- AssetCost: TCO (Total Cost of Ownership) tracking
Services (3):
- AssetService: CRUD, assignments, categories, statistics
- WorkOrderService: CRUD, workflow (start/hold/resume/complete/cancel), parts
- FuelLogService: CRUD, efficiency calculation, statistics
Controllers (3):
- AssetController: REST API for assets, assignments, categories
- WorkOrderController: REST API for work orders, workflow, plans
- FuelLogController: REST API for fuel logs, statistics
Features:
- Multi-tenant support with tenant_id
- Complete workflow for work orders (draft→scheduled→in_progress→completed)
- Automatic efficiency calculation for fuel consumption
- Asset assignment history tracking
- Maintenance plan generation
- TCO tracking by cost type
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 05:41:54 -06:00
Adrian Flores Cortes
bdf8c878e8
[PROP-CORE-004] feat: Register payment-terminals module in app
...
- Added PaymentTerminalsModule import and initialization
- Registered routes: /api/v1/payment-terminals, /api/v1/mercadopago, /api/v1/clip
- Registered webhooks: /webhooks/mercadopago, /webhooks/clip
- Updated API info with new endpoints
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 03:13:46 -06:00
Adrian Flores Cortes
3f54669dde
[PROP-CORE-004] fix: Remove external entity references from payment-terminals
...
Fixed getEntities() to only reference own entities, avoiding require errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 03:08:24 -06:00
Adrian Flores Cortes
058f42a4d1
[PROP-CORE-004] feat: Adapt AI roles for construction domain
...
- Roles: ADMIN, SUPERVISOR_OBRA, RESIDENTE, ALMACENISTA
- Domain-specific tools (projects, progress, materials)
- Construction industry terminology
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:57:45 -06:00
Adrian Flores Cortes
0493d4b8bd
[PROP-CORE-004] feat: Add Phase 6 modules from erp-core
...
Propagated modules:
- payment-terminals: MercadoPago + Clip TPV
- ai: Role-based AI access (ADMIN, SUPERVISOR_OBRA, RESIDENTE, ALMACENISTA)
- mcp: 18 ERP tools for AI assistants
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 02:45:03 -06:00
Adrian Flores Cortes
9a3f43ed2e
chore: Update package-lock.json
2026-01-25 02:27:58 -06:00
81b847ce8a
chore: Add .gitignore for clean repository
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 07:31:35 -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
aeb201d7f6
Initial commit
2026-01-16 14:04:08 +00:00