优化
This commit is contained in:
@@ -146,10 +146,10 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
var totalAccruedQty= this.Details.Sum(x => x.AccruedQty);
|
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);
|
var totalRealityQty = this.Details.Where(x=>x.AccruedQty>0).Sum(x => x.RealityQty);
|
||||||
|
|
||||||
if (totalAccruedQty == totalReceiveQty)
|
if (totalAccruedQty <= totalRealityQty)
|
||||||
this.Status = InstockStatus.Already;
|
this.Status = InstockStatus.Already;
|
||||||
else
|
else
|
||||||
this.Status = InstockStatus.Part;
|
this.Status = InstockStatus.Part;
|
||||||
@@ -167,10 +167,10 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
var totalAccruedQty = this.Details.Sum(x => x.AccruedQty);
|
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);
|
var totalRealityQty = this.Details.Where(x => x.AccruedQty > 0).Sum(x => x.RealityQty);
|
||||||
|
|
||||||
if (totalAccruedQty == totalReceiveQty)
|
if (totalAccruedQty <= totalRealityQty)
|
||||||
this.Status = InstockStatus.Already;
|
this.Status = InstockStatus.Already;
|
||||||
else
|
else
|
||||||
this.Status = InstockStatus.Part;
|
this.Status = InstockStatus.Part;
|
||||||
|
|||||||
Reference in New Issue
Block a user