修复bug
This commit is contained in:
@@ -60,6 +60,11 @@ namespace WMS.Web.Domain.Services
|
||||
//nos.Add(outStockTask.SourceBillNo);
|
||||
//var res = await _outStockTaskService.Ssyn(nos);
|
||||
//if (!res.IsSuccess) return Result.ReSuccess();
|
||||
//上传的物料在任务单里没有找到不能出库
|
||||
var ex = dto.Details.Select(s=>s.MaterialId).Except(outStockTask.Details.Select(s=>s.MaterialId)).ToList();
|
||||
if (ex.Count() > 0)
|
||||
return Result.ReFailure(ResultCodes.OutStockMaterialError);
|
||||
|
||||
|
||||
OutStock entity = new OutStock();
|
||||
entity.Create(loginInfo.UserInfo.StaffId, outStockTask);
|
||||
|
||||
Reference in New Issue
Block a user