diff --git a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs index b87c87bc3..5189f32ca 100644 --- a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs +++ b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs @@ -138,12 +138,15 @@ public class TransactionAppService var locationDtos = await _locationAppService.GetAllAsync().ConfigureAwait(false); var balanceDtos = await _balanceAppService .GetAllListByFilterAsync(new SfsInventoryRequestInputBase()).ConfigureAwait(false); + + var itemBasicDtos_i = await _itemBasicAppService.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase()).ConfigureAwait(false); + allItemBasicDtos = itemBasicDtos_i; + if (!itemCodes.Any()) { - var itemBasicDtos_i= await _itemBasicAppService.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase()).ConfigureAwait(false); var itemBasicDtos_t = await _repository.GetListAsync().ConfigureAwait(false); - allItemBasicDtos = itemBasicDtos_i; + allTransactions = itemBasicDtos_t; itemCodes.AddRange(itemBasicDtos_i.Select(p => p.Code));