调整出库任务单

This commit is contained in:
18942506660
2024-03-13 16:10:06 +08:00
parent 487d683795
commit 9c7b80bfcd

View File

@@ -178,6 +178,7 @@ namespace WMS.Web.Api.Controllers
//await _outStockTaskService.Sync(new List<string>() { billNo });
var res = await _repositories.GetOutStockTaskByNo(billNo);
res.details = res.details.Where(w => w.AccruedQty > w.RealityQty).ToList();
if (res == null) return Result<GetOutStockTaskByNoResponse>.ReFailure(ResultCodes.OutStockTaskNoData);
return Result<GetOutStockTaskByNoResponse>.ReSuccess(res);
}