diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs index e70921a92..35f80e4ca 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs @@ -244,6 +244,19 @@ public class GaoTongAppService : ApplicationService, IGaoTongAppService detailObj.ToStatus = EnumInventoryStatus.OK; detailObj.OnTheWayLocationCode = String.Empty; detailObj.Reason = ""; + + //from 库位类型半成品、成品 to 库位类型为线边仓,transferNoteEditInput.Type 赋值Depot_Issue_WIP + if ((fromLocationObj.Type == EnumLocationType.SEMI || fromLocationObj.Type == EnumLocationType.FG) + && (toLocationObj.Type == EnumLocationType.WIP || toLocationObj.Type == EnumLocationType.KittingWip)) + { + transferNoteEditInput.Type = EnumTransSubType.Depot_Issue_WIP.ToString(); + } + else + { + //from 库位类型为线边仓 to 库位类型为线边仓,transferNoteEditInput.Type 赋值Depot_Transfer_WIP + //其它条件 + transferNoteEditInput.Type = EnumTransSubType.Depot_Transfer_WIP.ToString(); + } var temp = await _transferNoteAppService.CreateAsync(transferNoteEditInput).ConfigureAwait(false); ret.Code = GaoTongResultStatus.Success; ret.Message = "接收成功";