feat(cardex): enhance stock movement retrieval with additional fields and optimized mapping

refactor(migration): update Stock_Movements table to include counterInventoryId and customerId, add foreign key constraints, and implement triggers for inventory management
This commit is contained in:
2025-12-23 20:35:44 +03:30
parent c6a86719dd
commit 89c57a69c1
10 changed files with 1366 additions and 143 deletions
@@ -2403,7 +2403,9 @@ export const StockMovementScalarFieldEnum = {
inventoryId: 'inventoryId',
avgCost: 'avgCost',
remainedInStock: 'remainedInStock',
supplierId: 'supplierId'
supplierId: 'supplierId',
customerId: 'customerId',
counterInventoryId: 'counterInventoryId'
} as const
export type StockMovementScalarFieldEnum = (typeof StockMovementScalarFieldEnum)[keyof typeof StockMovementScalarFieldEnum]