This commit is contained in:
@@ -5847,10 +5847,11 @@ namespace AyaNova.Biz
|
||||
{
|
||||
var unitInfo = await ct.Unit.AsNoTracking()
|
||||
.Where(x => x.Id == o.UnitId)
|
||||
.Select(x => new { x.Serial, x.Description, x.UnitModelId, x.Address, x.City, x.Region, x.Country, x.Latitude, x.Longitude })
|
||||
.Select(x => new { x.Serial, x.Description, x.UnitModelId, x.Address, x.City, x.Region, x.Country, x.Latitude, x.Longitude, x.Metered })
|
||||
.FirstOrDefaultAsync();
|
||||
o.UnitViz = unitInfo.Serial;
|
||||
o.UnitDescriptionViz = unitInfo.Description;
|
||||
o.UnitMeteredViz=unitInfo.Metered;
|
||||
if (populateForReporting)
|
||||
{
|
||||
o.AddressViz = unitInfo.Address;
|
||||
|
||||
@@ -33,6 +33,8 @@ namespace AyaNova.Models
|
||||
public string UnitModelModelNumberViz { get; set; }
|
||||
[NotMapped]
|
||||
public string UnitDescriptionViz { get; set; }
|
||||
[NotMapped]
|
||||
public bool UnitMeteredViz { get; set; }
|
||||
|
||||
//PHYSICAL ADDRESS
|
||||
[NotMapped]
|
||||
|
||||
Reference in New Issue
Block a user