修复bug
This commit is contained in:
@@ -155,10 +155,11 @@ namespace WMS.Web.Domain.Entitys
|
||||
{
|
||||
if (this.Status == OutStockStatus.Repeal)
|
||||
return;
|
||||
var details = this.Details.Where(w => w.IsRepeal != true).ToList();
|
||||
|
||||
if (this.Details.Where(w => w.RealityQty <= 0).Count() == this.Details.Count())
|
||||
if (details.Where(w => w.RealityQty <= 0).Count() == details.Count())
|
||||
this.Status = OutStockStatus.Wait;
|
||||
else if (this.Details.Where(w => w.RealityQty >= w.AccruedQty).Count() == this.Details.Count())
|
||||
else if (details.Where(w => w.RealityQty >= w.AccruedQty).Count() == details.Count())
|
||||
this.Status = OutStockStatus.Already;
|
||||
else
|
||||
this.Status = OutStockStatus.Part;
|
||||
@@ -202,6 +203,8 @@ namespace WMS.Web.Domain.Entitys
|
||||
//如果明细全部作废,则单据状态作废
|
||||
if (this.Details.Where(w => w.IsRepeal == true).Count() == this.Details.Count())
|
||||
this.Status = OutStockStatus.Repeal;
|
||||
|
||||
GenerateStatus();
|
||||
}
|
||||
/// <summary>
|
||||
/// 合并
|
||||
|
||||
Reference in New Issue
Block a user