This commit is contained in:
2021-09-30 20:24:55 +00:00
parent 18c9d2e7d4
commit ac67b3100d

View File

@@ -525,14 +525,10 @@ namespace AyaNova.Biz
if (o.AlternativeWholeSalerId != null)
o.AlternativeWholeSalerViz = await ct.Vendor.AsNoTracking().Where(x => x.Id == o.AlternativeWholeSalerId).Select(x => x.Name).FirstOrDefaultAsync();
//Ok, this one I'm not comfortable with but it was insisted upon
//so if there turns out to be a situation where there are just too many serials slowing down the reporting always
//if there turns out to be a situation where there are just too many serials slowing down the reporting always
//can look at tying this to the report data list column selection to check if serials are selected to display or not
o.PartSerialsViz = $"[{string.Join(',', (await ct.PartSerial.Where(z => z.PartId == o.Id).OrderBy(z => z.Serial).Select(z => $"'{z.Serial}'").ToListAsync()))}]";
o.PartSerialsViz = string.Join(", ", (await ct.PartSerial.Where(z => z.PartId == o.Id).OrderBy(z => z.Serial).Select(z => z.Serial).ToListAsync()));
}
////////////////////////////////////////////////////////////////////////////////////////////////