This commit is contained in:
2021-06-11 23:55:55 +00:00
parent 4a3cb3d778
commit c87b4c72a7

View File

@@ -2320,8 +2320,10 @@ namespace AyaNova.Biz
o.UserViz = await ct.User.AsNoTracking().Where(x => x.Id == o.UserId).Select(x => x.Name).FirstOrDefaultAsync(); o.UserViz = await ct.User.AsNoTracking().Where(x => x.Id == o.UserId).Select(x => x.Name).FirstOrDefaultAsync();
ServiceRate Rate = null; ServiceRate Rate = null;
if (o.ServiceRateId != null) if (o.ServiceRateId != null)
{
Rate = await ct.ServiceRate.AsNoTracking().FirstOrDefaultAsync(x => x.Id == o.ServiceRateId); Rate = await ct.ServiceRate.AsNoTracking().FirstOrDefaultAsync(x => x.Id == o.ServiceRateId);
o.ServiceRateViz = Rate.Name; o.ServiceRateViz = Rate.Name;
}
TaxCode Tax = null; TaxCode Tax = null;
if (o.TaxCodeSaleId != null) if (o.TaxCodeSaleId != null)
Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.TaxCodeSaleId); Tax = await ct.TaxCode.AsNoTracking().FirstOrDefaultAsync(z => z.Id == o.TaxCodeSaleId);