|
|
@ -217,7 +217,6 @@ public class InspectJobAppService |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"根据PackingCode={input.FromPackingCode}取InspectDetail表为空!"); |
|
|
|
} |
|
|
|
|
|
|
|
//插入目标箱
|
|
|
|
var newDetail = CommonHelper.CloneObj(detail); |
|
|
|
newDetail.SetId(GuidGenerator.Create()); |
|
|
@ -226,6 +225,8 @@ public class InspectJobAppService |
|
|
|
newDetail.InspectQty = input.ToQty; |
|
|
|
newDetail.GoodQty = input.ToQty; |
|
|
|
//newDetail.CreationTime = CommonHelper.CurTime;
|
|
|
|
decimal maxPoLine = job.Details.Max(itm => itm.PoLine.TryToDecimalZero()); |
|
|
|
newDetail.PoLine = (maxPoLine + 1).ToString(); //行号自增
|
|
|
|
job.Details.Add(newDetail); |
|
|
|
//修改源箱
|
|
|
|
detail.ReceiveQty = input.FromQty - input.ToQty; |
|
|
|