反作废

This commit is contained in:
18942506660
2024-06-14 10:59:19 +08:00
parent 8d17b858ee
commit b5fd86f270
7 changed files with 72 additions and 6 deletions

View File

@@ -127,6 +127,19 @@ namespace WMS.Web.Domain.Entitys
}
/// <summary>
/// 反作废
/// </summary>
public void NoRepeal(int repealerId, List<int> detailsIds)
{
this.RepealerId = 0;
this.RepealTime = null;
//明细行作废
this.Details.Where(x => detailsIds.Contains(x.Id)).ToList().ForEach(x => { x.IsRepeal = false; });
this.ChangeInstockStatus();//重新计算单据的状态
}
/// <summary>
/// 创建订单号