diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs index 605767e8c..fd5c43d51 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/AssembleIssueJobs/AssembleIssueJobAppService.cs @@ -380,9 +380,12 @@ public class AssembleIssueJobAppService await AssembleIssueRequestAppService.UpdateStatusCompletedAsync(assembleIssueJob.AssembleRequestNumber) .ConfigureAwait(false); - await _transferLibRequestAppService.CompleteByJobNumAsync(assembleIssueJob.Number) + var flag = await _transferLibRequestAppService.IsCompleted(assembleIssueJob.Number).ConfigureAwait(false); + if (flag == false) + { + await _transferLibRequestAppService.CompleteByJobNumAsync(assembleIssueJob.Number) .ConfigureAwait(false); - + } await _repository.UpdateAsync(assembleIssueJob).ConfigureAwait(false); } @@ -753,8 +756,6 @@ public class AssembleIssueJobAppService else if (loctionDto.Type == EnumLocationType.RAW && loctionDto.RowCode == 1) { - - jobDetailInputdetail.TransferLibFromArriveDate = jobDetailInputdetail.RecommendFromArriveDate; jobDetailInputdetail.TransferLibFromContainerCode = jobDetailInputdetail.RecommendFromContainerCode; jobDetailInputdetail.TransferLibFromExpireDate = jobDetailInputdetail.RecommendFromExpireDate;