Browse Source

盘点

dev_DY_CC
lvzb 10 months ago
parent
commit
9763b4903a
  1. 8
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/TransferRequests/TransferRequestAppService.cs
  2. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs

8
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;

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Jobs/CountJobEventHandler.cs

@ -57,7 +57,9 @@ public class CountJobEventHandler :
}
}
private async Task<CountPlanEditInput> BuildCountPlanJobUpdateDTO(CountJob entity)
{
{
entity.DepDetails.RemoveAll(r => r.InventoryStage != entity.InventoryStage);
entity.Details.RemoveAll(r => r.InventoryStage != entity.InventoryStage);
var countPlanUpdateInput = ObjectMapper.Map<CountJob, CountPlanEditInput>(entity);
foreach (var detail in countPlanUpdateInput.Details)

Loading…
Cancel
Save