Commit Graph

4 Commits

Author SHA1 Message Date
b3eaebb54c [MCH-BE] feat: Add export endpoints for PDF/Excel reports
Implement export functionality for four report types:
- Sales: Daily/period sales with totals and items
- Inventory: Current stock with value calculations
- Fiados: Customer credit accounts and balances
- Movements: Inventory entries/exits with references

Features:
- PDF exports using pdfkit with formatted tables and summaries
- Excel exports using exceljs with styling and formulas
- Filter support: date ranges, status, category, etc.
- Proper content-type headers for file downloads
- JWT authentication on all endpoints

Endpoints:
GET /api/v1/exports/sales/:format
GET /api/v1/exports/inventory/:format
GET /api/v1/exports/fiados/:format
GET /api/v1/exports/movements/:format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:30:11 -06:00
75e881e1cc feat(notifications): Add notifications module (MCH-017)
- Add entities: Notification, NotificationTemplate, NotificationPreference, DeviceToken
- Add NotificationsService with send, templated, preferences, device tokens
- Add NotificationsController with REST endpoints
- Add default notification templates for orders, payments, alerts
- Integrate axios for HTTP calls to WhatsApp service

Sprint 3: MCH-017 Notificaciones

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:32:03 -06:00
4fcdd30812 chore: Actualizar dependencias NestJS para compatibilidad v11
- @nestjs/swagger: ^8.1.0 -> ^11.2.5
- @nestjs/config: ^3.3.0 -> ^4.0.2

Resuelve conflictos de peer dependencies con NestJS 11.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 05:21:17 -06:00
59e6ea4ab6 Migración desde michangarrito/backend - Estándar multi-repo v2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:12:07 -06:00