优化
This commit is contained in:
@@ -540,7 +540,7 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
//当应入库数量大于实际入库数量:状态就部分入库
|
||||
//当应入库数量小于等于实际入库数量:状态就已入库
|
||||
var AccruedQtyTotal = order.Details.Sum(x => x.AccruedQty);
|
||||
var AccruedQtyTotal = order.Details.Where(x => x.AccruedQty != 0).Sum(x => x.AccruedQty);
|
||||
var RealityQtyTotal = order.Details.Where(x=>x.AccruedQty!=0).Sum(x => x.RealityQty);
|
||||
if(RealityQtyTotal!=0 && AccruedQtyTotal > RealityQtyTotal)
|
||||
order.Status = InstockStatus.Part;
|
||||
|
||||
Reference in New Issue
Block a user