增加总入库量
This commit is contained in:
@@ -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 ? "同步中" : "失败"))),
|
||||
|
||||
Reference in New Issue
Block a user