Browse Source

修改 备品不从高转低

dev_DY_CC
郑勃旭 10 months ago
parent
commit
2306a9e3ac
  1. 14
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/SparePartIssueJobs/SparePartIssueJobAppService.cs
  2. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/Issue/SparePartIssueJobEventHandler.cs

14
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/SparePartIssueJobs/SparePartIssueJobAppService.cs

@ -504,12 +504,12 @@ public class SparePartIssueJobAppService
var loctionDto = await _locationAppService.GetByCodeAsync(jobDetailInputdetail.RecommendFromLocationCode)
.ConfigureAwait(false);
if (loctionDto.Type == EnumLocationType.RAW && loctionDto.RowCode != 1)
{
input.JobStatus = EnumJobStatus.Wait;
}
else if (loctionDto.Type == EnumLocationType.RAW && loctionDto.RowCode == 1)
{
//if (loctionDto.Type == EnumLocationType.RAW && loctionDto.RowCode != 1)
//{
// input.JobStatus = EnumJobStatus.Wait;
//}
//else if (loctionDto.Type == EnumLocationType.RAW && loctionDto.RowCode == 1)
//{
jobDetailInputdetail.TransferLibFromArriveDate = jobDetailInputdetail.RecommendFromArriveDate;
jobDetailInputdetail.TransferLibFromContainerCode = jobDetailInputdetail.RecommendFromContainerCode;
jobDetailInputdetail.TransferLibFromExpireDate = jobDetailInputdetail.RecommendFromExpireDate;
@ -537,7 +537,7 @@ public class SparePartIssueJobAppService
jobDetailInputdetail.TransferLibToLocationCode = jobDetailInputdetail.TransferLibFromLocationCode;
jobDetailInputdetail.TransferLibToLocationErpCode = jobDetailInputdetail.TransferLibFromLocationErpCode;
jobDetailInputdetail.TransferLibToLocationGroup = jobDetailInputdetail.TransferLibFromLocationGroup;
}
//}
}
/// <summary>

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/Issue/SparePartIssueJobEventHandler.cs

@ -150,6 +150,8 @@ public class SparePartIssueJobEventHandler :
if (locationDto.Type == EnumLocationType.RAW)
{
break;
//备品不需要做 高转低库移
if (!await IsMinRowAsync(sparePartIssueJob).ConfigureAwait(false))
{
var input = new TransferLibRequestEditInput();

Loading…
Cancel
Save