优化
This commit is contained in:
@@ -144,8 +144,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.Sum(x => x.ReceiveQty);
|
||||
var totalReceiveQty = this.Details.Where(x=>x.AccruedQty>0).Sum(x => x.ReceiveQty);
|
||||
|
||||
if (totalAccruedQty == totalReceiveQty)
|
||||
this.Status = InstockStatus.Already;
|
||||
@@ -163,8 +165,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.Sum(x => x.ReceiveQty);
|
||||
var totalReceiveQty = this.Details.Where(x => x.AccruedQty > 0).Sum(x => x.ReceiveQty);
|
||||
|
||||
if (totalAccruedQty == totalReceiveQty)
|
||||
this.Status = InstockStatus.Already;
|
||||
|
||||
Reference in New Issue
Block a user