修复bug
This commit is contained in:
@@ -183,6 +183,12 @@ namespace WMS.Web.Domain.Entitys
|
||||
//改变状态
|
||||
public void ChangeInstockStatus()
|
||||
{
|
||||
//明细都作废后 整个单据作废
|
||||
if (this.Details.Count() == this.Details.Where(w => w.IsRepeal == true).Count())
|
||||
{
|
||||
this.Status = InstockStatus.Repeal;
|
||||
return;
|
||||
}
|
||||
//明细中:所有的应入数量之和
|
||||
var totalAccruedQty = this.Details.Where(x => x.IsRepeal != true).Sum(x => x.AccruedQty);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user