This commit is contained in:
tongfei
2024-03-12 16:17:05 +08:00
parent 7711b66b9b
commit eec3991892

View File

@@ -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;