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:
parent
5fa451e09f
commit
5357311953
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user