From 5357311953fcd4675a136755505e72983933d43d Mon Sep 17 00:00:00 2001 From: rckrdmrd Date: Sun, 18 Jan 2026 09:54:43 -0600 Subject: [PATCH] feat(inventory): Register all inventory entities in TypeORM config Added missing entity registrations for: - Inventory: StockLevel, StockMovement, InventoryCount, InventoryCountLine, InventoryAdjustment, InventoryAdjustmentLine, TransferOrder, TransferOrderLine, StockValuationLayer - Fiscal: TaxCategory, FiscalRegime, CfdiUse, PaymentMethod, PaymentType, WithholdingType - Core: CurrencyRate, State This enables TypeORM to properly manage these entities for the inventory module. Co-Authored-By: Claude Opus 4.5 --- src/config/typeorm.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/config/typeorm.ts b/src/config/typeorm.ts index 27b48e7..9903c2f 100644 --- a/src/config/typeorm.ts +++ b/src/config/typeorm.ts @@ -29,7 +29,9 @@ import { import { Partner } from '../modules/partners/entities/index.js'; import { Currency, + CurrencyRate, Country, + State, UomCategory, Uom, ProductCategory, @@ -63,11 +65,27 @@ import { Lot, Picking, StockMove, + StockLevel, + StockMovement, + InventoryCount, + InventoryCountLine, InventoryAdjustment, InventoryAdjustmentLine, + TransferOrder, + TransferOrderLine, StockValuationLayer, } from '../modules/inventory/entities/index.js'; +// Import Fiscal Entities +import { + TaxCategory, + FiscalRegime, + CfdiUse, + PaymentMethod, + PaymentType, + WithholdingType, +} from '../modules/fiscal/entities/index.js'; + /** * TypeORM DataSource configuration * @@ -107,7 +125,9 @@ export const AppDataSource = new DataSource({ // Core Module Entities Partner, Currency, + CurrencyRate, Country, + State, UomCategory, Uom, ProductCategory, @@ -135,9 +155,22 @@ export const AppDataSource = new DataSource({ Lot, Picking, StockMove, + StockLevel, + StockMovement, + InventoryCount, + InventoryCountLine, InventoryAdjustment, InventoryAdjustmentLine, + TransferOrder, + TransferOrderLine, StockValuationLayer, + // Fiscal Entities + TaxCategory, + FiscalRegime, + CfdiUse, + PaymentMethod, + PaymentType, + WithholdingType, ], // Directorios de migraciones (para uso futuro)