From eec399189298c259efd97a026001c3e71642b7ee Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Tue, 12 Mar 2024 16:17:05 +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/Entitys/InstockTask.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/WMS.Web.Domain/Entitys/InstockTask.cs b/src/WMS.Web.Domain/Entitys/InstockTask.cs index f23149f2..11372b08 100644 --- a/src/WMS.Web.Domain/Entitys/InstockTask.cs +++ b/src/WMS.Web.Domain/Entitys/InstockTask.cs @@ -146,10 +146,10 @@ namespace WMS.Web.Domain.Entitys var totalAccruedQty= this.Details.Sum(x => x.AccruedQty); ////明细中:所有的收货数量之和 //var totalReceiveQty = this.Details.Sum(x => x.ReceiveQty); - //明细中:所有的收货数量之和 - var totalReceiveQty = this.Details.Where(x=>x.AccruedQty>0).Sum(x => x.ReceiveQty); + //明细中:所有的入库数量之和 + var totalRealityQty = this.Details.Where(x=>x.AccruedQty>0).Sum(x => x.RealityQty); - if (totalAccruedQty == totalReceiveQty) + if (totalAccruedQty <= totalRealityQty) this.Status = InstockStatus.Already; else this.Status = InstockStatus.Part; @@ -167,10 +167,10 @@ namespace WMS.Web.Domain.Entitys var totalAccruedQty = this.Details.Sum(x => x.AccruedQty); ////明细中:所有的收货数量之和 //var totalReceiveQty = this.Details.Sum(x => x.ReceiveQty); - //明细中:所有的收货数量之和 - var totalReceiveQty = this.Details.Where(x => x.AccruedQty > 0).Sum(x => x.ReceiveQty); + //明细中:所有的入库数量之和 + var totalRealityQty = this.Details.Where(x => x.AccruedQty > 0).Sum(x => x.RealityQty); - if (totalAccruedQty == totalReceiveQty) + if (totalAccruedQty <= totalRealityQty) this.Status = InstockStatus.Already; else this.Status = InstockStatus.Part;