diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferRequests/TransferRequestAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferRequests/TransferRequestAppService.cs index 612bd5c33..da9fbdf93 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferRequests/TransferRequestAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferRequests/TransferRequestAppService.cs @@ -115,10 +115,10 @@ public class TransferRequestAppService : SfsStoreRequestAppServiceBase CheckLocation(toLocationDto, detail.ToLocationCode); CheckLocation(fromLocationDto, detail.FromLocationCode); - if (toLocationDto.Type != fromLocationDto.Type) - { - throw new UserFriendlyException($"来源库位与目标库位类型不一致"); - } + //if (toLocationDto.Type != fromLocationDto.Type) + //{ + // throw new UserFriendlyException($"来源库位与目标库位类型不一致"); + //} detail.ItemCode = balanceDto.ItemCode; detail.ArriveDate = balanceDto.ArriveDate; diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs index 7e7233104..ba21e9490 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs @@ -57,7 +57,9 @@ public class CountJobEventHandler : } } private async Task BuildCountPlanJobUpdateDTO(CountJob entity) - { + { + entity.DepDetails.RemoveAll(r => r.InventoryStage != entity.InventoryStage); + entity.Details.RemoveAll(r => r.InventoryStage != entity.InventoryStage); var countPlanUpdateInput = ObjectMapper.Map(entity); foreach (var detail in countPlanUpdateInput.Details)