Backend de erp-core - Workspace V2
Go to file
Adrian Flores Cortes 0f7feff3f8 fix(entities): Sync SalesOrder, Product, Partner entities with DDL
GAP-ENT-001: SalesOrder - aligned with sales.sales_orders DDL
- Renamed name -> orderNumber
- Changed currencyId (UUID) -> currency (string)
- Changed paymentTermId -> paymentTermDays (int)
- Added: partnerName, partnerEmail, billingAddress, shippingAddress
- Added: requestedDate, promisedDate, shippedDate, deliveredDate
- Added: warehouseId, discountAmount, shippingAmount
- Added: shippingMethod, trackingNumber, carrier, internalNotes
- Removed Odoo-style fields not in DDL

GAP-ENT-002: Product - aligned with products.products DDL
- Renamed salePrice -> price, costPrice -> cost
- Renamed satProductCode -> taxCode, conversionFactor -> uomConversion
- Added: shortDescription, volume, leadTimeDays, attributes (JSONB)
- Removed: inventoryProductId, shortName, satUnitCode, tags, notes
- Removed tracking fields (trackLots, trackSerials, trackExpiry)

GAP-ENT-003: Partner - aligned with partners.partners DDL
- Added: name (separate from displayName)
- Added: taxIdType, verifiedAt, settings (JSONB)
- Removed fields that belong in partner_tax_info: taxRegime, cfdiUse
- Removed: currentBalance, priceListId, discountPercent, salesRepId

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:11:59 -06:00
src fix(entities): Sync SalesOrder, Product, Partner entities with DDL 2026-02-03 18:11:59 -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(core): Add comprehensive tests for core catalog services 2026-01-18 09:21:22 -06:00
package-lock.json [SYNC] feat: Add audit, MFA, and feature flags modules 2026-02-03 08:02:02 -06:00
package.json [SYNC] feat: Add audit, MFA, and feature flags modules 2026-02-03 08:02:02 -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