出库申请代码逻辑调整
This commit is contained in:
@@ -14,6 +14,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using NPOI.SS.Formula;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData.Entities;
|
||||
using Tnb.Common.Utils;
|
||||
using Tnb.WarehouseMgr.Entities;
|
||||
using Tnb.WarehouseMgr.Entities.Attributes;
|
||||
using Tnb.WarehouseMgr.Entities.Consts;
|
||||
@@ -93,15 +94,16 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
else if (os.pr_qty <= carryCodesPart[i].codeqty)
|
||||
{
|
||||
carryCodesPart[i].codeqty = os.pr_qty;
|
||||
curCarryCodes.Add(carryCodesPart[i]);
|
||||
WmsCarryCode curCarryCode = DeepCopyHelper<WmsCarryCode>.DeepCopy(carryCodesPart[i]);
|
||||
curCarryCode.codeqty = os.pr_qty;
|
||||
curCarryCodes.Add(curCarryCode);
|
||||
break;
|
||||
}
|
||||
}
|
||||
var partCarryMats = curCarryCodes.Adapt<List<WmsCarryMat>>();
|
||||
for (int i = 0; i < partCarryMats.Count; i++)
|
||||
{
|
||||
partCarryMats[i].need_qty = carryCodesPart[i].codeqty;
|
||||
partCarryMats[i].need_qty = curCarryCodes[i].codeqty;
|
||||
}
|
||||
|
||||
carryMats.AddRange(partCarryMats);
|
||||
|
||||
Reference in New Issue
Block a user