增加明细行作废
This commit is contained in:
@@ -191,11 +191,17 @@ namespace WMS.Web.Domain.Entitys
|
||||
/// <summary>
|
||||
/// 作废
|
||||
/// </summary>
|
||||
public void Repeal(int creatorId)
|
||||
public void Repeal(int creatorId, List<int> ids)
|
||||
{
|
||||
this.OperatorId = creatorId;
|
||||
this.OperateTime = DateTime.Now;
|
||||
this.Status = OutStockStatus.Repeal;
|
||||
foreach (var d in this.Details.Where(w => ids.Contains(w.Id)))
|
||||
{
|
||||
d.IsRepeal = true;
|
||||
}
|
||||
//如果明细全部作废,则单据状态作废
|
||||
if (this.Details.Where(w => w.IsRepeal == true).Count() == this.Details.Count())
|
||||
this.Status = OutStockStatus.Repeal;
|
||||
}
|
||||
/// <summary>
|
||||
/// 合并
|
||||
|
||||
Reference in New Issue
Block a user