修复bug
This commit is contained in:
@@ -161,6 +161,13 @@ namespace WMS.Web.Domain.Entitys
|
||||
{
|
||||
if (this.Status == OutStockStatus.Repeal)
|
||||
return;
|
||||
//明细都作废后 整个单据作废
|
||||
if (this.Details.Count() == this.Details.Where(w => w.IsRepeal == true).Count())
|
||||
{
|
||||
this.Status = OutStockStatus.Repeal;
|
||||
return;
|
||||
}
|
||||
|
||||
var details = this.Details.Where(w => w.IsRepeal != true).ToList();
|
||||
|
||||
if (details.Where(w => w.RealityQty <= 0).Count() == details.Count())
|
||||
|
||||
Reference in New Issue
Block a user