From 75af1480a81edb052d4bb82e374d7563486c3319 Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Tue, 12 Mar 2024 16:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Services/InStockTaskService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WMS.Web.Domain/Services/InStockTaskService.cs b/src/WMS.Web.Domain/Services/InStockTaskService.cs index e7ea5113..0953af5d 100644 --- a/src/WMS.Web.Domain/Services/InStockTaskService.cs +++ b/src/WMS.Web.Domain/Services/InStockTaskService.cs @@ -542,10 +542,10 @@ namespace WMS.Web.Domain.Services //当应入库数量小于等于实际入库数量:状态就已入库 var AccruedQtyTotal = order.Details.Sum(x => x.AccruedQty); var RealityQtyTotal = order.Details.Sum(x => x.RealityQty); - if(AccruedQtyTotal> RealityQtyTotal) + if(RealityQtyTotal!=0 && AccruedQtyTotal > RealityQtyTotal) order.Status = InstockStatus.Part; else if(AccruedQtyTotal<= RealityQtyTotal) - order.Status = InstockStatus.Already; + order.Status = InstockStatus.Already; }); }