From a73d685aacb14ac62077d93380d9a1bda6b179b2 Mon Sep 17 00:00:00 2001 From: liuyunfeng Date: Thu, 6 Jun 2024 15:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=20Depot=5FTransfer=5FWIP=20D?= =?UTF-8?q?epot=5FIssue=5FWIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GaoTongs/GaoTongAppService.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = "接收成功";