From 9c286f7dcb40bda90e0e6f9cfaa1ab4fc83e47e9 Mon Sep 17 00:00:00 2001 From: 18942506660 <18942506660@A18942506660> Date: Wed, 27 Dec 2023 11:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Entitys/OutStockTask.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/WMS.Web.Domain/Entitys/OutStockTask.cs b/src/WMS.Web.Domain/Entitys/OutStockTask.cs index 79702111..29373b7c 100644 --- a/src/WMS.Web.Domain/Entitys/OutStockTask.cs +++ b/src/WMS.Web.Domain/Entitys/OutStockTask.cs @@ -102,7 +102,7 @@ namespace WMS.Web.Domain.Entitys /// /// /// - public Result> OutStock(int materialId, decimal qty,int outStockId) + public Result> OutStock(int materialId, decimal qty, int outStockId) { if (this.Status == OutStockStatus.Already) return Result>.ReFailure(ResultCodes.OutStockTaskAlready); @@ -233,7 +233,14 @@ namespace WMS.Web.Domain.Entitys } else + { + foreach (var erpd in d.ErpDetails) + { + erpd.Id = 0; + erpd.DetailId = 0; + } details_new.Add(d); + } } this.CreateTime = list.Max(o => o.CreateTime);//取最新的时间 this.OperatorId = creatorId;