This commit is contained in:
@@ -525,14 +525,10 @@ namespace AyaNova.Biz
|
|||||||
if (o.AlternativeWholeSalerId != null)
|
if (o.AlternativeWholeSalerId != null)
|
||||||
o.AlternativeWholeSalerViz = await ct.Vendor.AsNoTracking().Where(x => x.Id == o.AlternativeWholeSalerId).Select(x => x.Name).FirstOrDefaultAsync();
|
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
|
//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()));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user