Backend de erp-core - Workspace V2
Go to file
rckrdmrd 6054102774 [BACKEND] feat: EPIC-001 & EPIC-002 - Core module completion and entity consolidation
EPIC-001: Complete Core Module
- Add PaymentTerm entity with multi-line support (30/60/90 days, early payment discounts)
- Add PaymentTerms service with calculateDueDate() functionality
- Add DiscountRule entity with volume/time-based conditions
- Add DiscountRules service with applyDiscounts() and rule combination logic
- Add REST endpoints for payment-terms and discount-rules in core module
- Register new entities in TypeORM configuration

EPIC-002: Entity Consolidation
- Add inventoryProductId FK to products.products for linking to inventory module
- Consolidate Warehouse entity in warehouses module as canonical source
- Add companyId and Location relation to canonical Warehouse
- Update inventory module to re-export Warehouse from warehouses module
- Remove deprecated warehouse.entity.ts from inventory module
- Update inventory/warehouses.service.ts to use canonical Warehouse

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 05:13:34 -06:00
src [BACKEND] feat: EPIC-001 & EPIC-002 - Core module completion and entity consolidation 2026-01-18 05:13:34 -06:00
.env.example Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
.gitignore Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
Dockerfile Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
jest.config.js test(fase2): Add unit tests for FASE 2 modules 2026-01-18 04:18:40 -06:00
package-lock.json fix: Resolve entity/service field mismatches and build errors (84→19) 2026-01-18 02:27:03 -06:00
package.json fix: Resolve entity/service field mismatches and build errors (84→19) 2026-01-18 02:27:03 -06:00
service.descriptor.yml Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
tsconfig.json Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_DEPENDENCIES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_INTEGRATION_SUMMARY.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00
TYPEORM_USAGE_EXAMPLES.md Initial commit - erp-core-backend 2026-01-04 06:40:14 -06:00