增加统计总数

This commit is contained in:
18942506660
2024-07-27 14:39:41 +08:00
parent 3b8b2127e8
commit ee56b83a76
4 changed files with 13 additions and 0 deletions

View File

@@ -303,6 +303,10 @@ namespace WMS.Web.Api.Controllers
{
x.MaterialSubStocks = materialSubStocks.Where(t => t.MaterialNumber == x.MaterialNumber && t.StockCode==x.StockCode && t.OrgCode == x.OrgCode).Select(x => x.SubStock).ToList();
});
foreach(var l in list)
{
l.WaitShelfQty = l.Details.Sum(s => s.WaitShelfQty);
}
return ResultList<SourceBillNoNoPurchaseQueryResponse>.ReSuccess(list);
}