修复bug
This commit is contained in:
@@ -102,7 +102,7 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
/// <param name="materialId"></param>
|
/// <param name="materialId"></param>
|
||||||
/// <param name="qty"></param>
|
/// <param name="qty"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Result<List<(int erpDetailId, decimal qty)>> OutStock(int materialId, decimal qty,int outStockId)
|
public Result<List<(int erpDetailId, decimal qty)>> OutStock(int materialId, decimal qty, int outStockId)
|
||||||
{
|
{
|
||||||
if (this.Status == OutStockStatus.Already)
|
if (this.Status == OutStockStatus.Already)
|
||||||
return Result<List<(int erpDetailId, decimal qty)>>.ReFailure(ResultCodes.OutStockTaskAlready);
|
return Result<List<(int erpDetailId, decimal qty)>>.ReFailure(ResultCodes.OutStockTaskAlready);
|
||||||
@@ -233,7 +233,14 @@ namespace WMS.Web.Domain.Entitys
|
|||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
foreach (var erpd in d.ErpDetails)
|
||||||
|
{
|
||||||
|
erpd.Id = 0;
|
||||||
|
erpd.DetailId = 0;
|
||||||
|
}
|
||||||
details_new.Add(d);
|
details_new.Add(d);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.CreateTime = list.Max(o => o.CreateTime);//取最新的时间
|
this.CreateTime = list.Max(o => o.CreateTime);//取最新的时间
|
||||||
this.OperatorId = creatorId;
|
this.OperatorId = creatorId;
|
||||||
|
|||||||
Reference in New Issue
Block a user