修复bug

This commit is contained in:
18942506660
2024-10-09 17:07:39 +08:00
parent 2f148d2a4e
commit b30c1c6410
4 changed files with 23 additions and 1 deletions

View File

@@ -393,7 +393,8 @@ namespace WMS.Web.Repositories
Specifications = _erpBasicDataExtendService.GetMaterialSpecifications(materials, s.detail.MaterialNumber),
Unit = _erpBasicDataExtendService.GetMaterialUnitName(materials, s.detail.MaterialNumber),
Remark = s.detail.Remark,
InStock = GetInStock(s.detail.ErpDetails.Select(s => s.InStockCode).ToList(), companyId, s.order.OrgCode)
InStockCodes= s.detail.ErpDetails.Select(s => s.InStockCode).ToList(),
OrgCode= s.order.OrgCode
#endregion
}).Skip((dto.PageNo - 1) * dto.PageSize).Take(dto.PageSize).ToListAsync();
@@ -401,6 +402,7 @@ namespace WMS.Web.Repositories
{
l.SourceBillNo = string.Join(",", l.SourceBillNoList.Distinct());
l.SaleBillNo = string.Join(",", l.SaleBillNoList.Distinct());
l.InStock = GetInStock(l.InStockCodes, companyId, l.OrgCode);
}
return (list, total);
}