优化接口

This commit is contained in:
tongfei
2023-11-25 15:23:32 +08:00
parent eee46a2efa
commit 5b04e23a6d

View File

@@ -216,9 +216,6 @@ namespace WMS.Web.Domain.Services
x.SerialNumbers.AddRange(current_box_mat_serNums);
}
});
//需要填写序列号
//需要修改库存
//需要同步金蝶
entity = await _inStockRepositories.Add(entity, isTransaction);
if (entity == null)
@@ -231,9 +228,7 @@ namespace WMS.Web.Domain.Services
{
task.Details.ForEach(x =>
{
var current_dto_det = dto.Details.Where(x => x.MaterialId == x.MaterialId).FirstOrDefault();
if (current_dto_det != null)
x.DeliveredQty = current_dto_det.Qty;
x.DeliveredQty = x.ReceiveQty;
});
task.Shelf(loginInfo.UserInfo.StaffId);
task =await _inStockTaskRepositories.Update(task,isTransaction);