增加总入库量

This commit is contained in:
18942506660
2024-07-27 11:13:16 +08:00
parent 010e6d8c05
commit 18a01836d3
3 changed files with 12 additions and 1 deletions

View File

@@ -365,6 +365,7 @@ namespace WMS.Web.Repositories
}
int total = await query.CountAsync();
decimal totalQty = await query.SumAsync(s => s.detail.Qty);
var list = await query.Select(s => new InStockQueryResponse()
{
Id = s.order.Id,
@@ -380,6 +381,7 @@ namespace WMS.Web.Repositories
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, s.detail.MaterialNumber),
Stock = _singleDataService.GetSingleData(SingleAction.StocksJoinOrgCode, companyId, s.order.StockCode + s.order.OrgCode),
Qty = s.detail.Qty,
TotalQty= totalQty,
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, companyId, s.order.CreatorId),
CreateTime = s.order.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"),
SuccessSync = (s.order.Type != InstockType.Purchase ? "--" : (s.order.SuccessSync == SyncStatus.Success ? "成功" : (s.order.SuccessSync == SyncStatus.SyncIng ? "同步中" : "失败"))),