修复bug
This commit is contained in:
Binary file not shown.
@@ -178,7 +178,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
if (details.Where(w => w.IsRepeal != true).Count() > 0)
|
if (details.Where(w => w.IsRepeal != true).Count() > 0)
|
||||||
{
|
{
|
||||||
detail = details.Where(w => w.IsRepeal != true).FirstOrDefault();
|
detail = details.Where(w => w.IsRepeal != true).FirstOrDefault();
|
||||||
isAdd = false;
|
isAdd = false;
|
||||||
}
|
}
|
||||||
if (details.Count() != 0 && details.Count() == details.Where(w => w.IsRepeal == true).Count())
|
if (details.Count() != 0 && details.Count() == details.Where(w => w.IsRepeal == true).Count())
|
||||||
{
|
{
|
||||||
@@ -584,7 +584,8 @@ namespace WMS.Web.Domain.Services
|
|||||||
Specifications = m?.Specifications ?? "",
|
Specifications = m?.Specifications ?? "",
|
||||||
BarCode = m?.BarCode ?? "",
|
BarCode = m?.BarCode ?? "",
|
||||||
MaterialName = m?.MaterialName ?? "",
|
MaterialName = m?.MaterialName ?? "",
|
||||||
AccruedQty = entity.Details.FirstOrDefault(f => f.Id == detail.ErpDetails.First().DetailId)?.AccruedQty ?? 0
|
//AccruedQty = entity.Details.FirstOrDefault(f => f.MaterialNumber == detail.MaterialNumber && f.IsRepeal != true)?.AccruedQty ?? 0
|
||||||
|
AccruedQty = entity.Details.FirstOrDefault(f => f.ErpDetails.Where(w => detail.ErpDetails.Select(s => s.Erp_DetailId).Contains(w.Erp_DetailId)).Any())?.AccruedQty ?? 0
|
||||||
};
|
};
|
||||||
response.Details.Add(infoDetail);
|
response.Details.Add(infoDetail);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user