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 <noreply@anthropic.com>
This commit is contained in:
rckrdmrd 2026-01-18 09:54:43 -06:00
parent 5fa451e09f
commit 5357311953

View File

@ -29,7 +29,9 @@ import {
import { Partner } from '../modules/partners/entities/index.js'; import { Partner } from '../modules/partners/entities/index.js';
import { import {
Currency, Currency,
CurrencyRate,
Country, Country,
State,
UomCategory, UomCategory,
Uom, Uom,
ProductCategory, ProductCategory,
@ -63,11 +65,27 @@ import {
Lot, Lot,
Picking, Picking,
StockMove, StockMove,
StockLevel,
StockMovement,
InventoryCount,
InventoryCountLine,
InventoryAdjustment, InventoryAdjustment,
InventoryAdjustmentLine, InventoryAdjustmentLine,
TransferOrder,
TransferOrderLine,
StockValuationLayer, StockValuationLayer,
} from '../modules/inventory/entities/index.js'; } 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 * TypeORM DataSource configuration
* *
@ -107,7 +125,9 @@ export const AppDataSource = new DataSource({
// Core Module Entities // Core Module Entities
Partner, Partner,
Currency, Currency,
CurrencyRate,
Country, Country,
State,
UomCategory, UomCategory,
Uom, Uom,
ProductCategory, ProductCategory,
@ -135,9 +155,22 @@ export const AppDataSource = new DataSource({
Lot, Lot,
Picking, Picking,
StockMove, StockMove,
StockLevel,
StockMovement,
InventoryCount,
InventoryCountLine,
InventoryAdjustment, InventoryAdjustment,
InventoryAdjustmentLine, InventoryAdjustmentLine,
TransferOrder,
TransferOrderLine,
StockValuationLayer, StockValuationLayer,
// Fiscal Entities
TaxCategory,
FiscalRegime,
CfdiUse,
PaymentMethod,
PaymentType,
WithholdingType,
], ],
// Directorios de migraciones (para uso futuro) // Directorios de migraciones (para uso futuro)