This commit is contained in:
@@ -19,7 +19,6 @@ namespace AyaNovaQBI
|
|||||||
public string UnitModelVendorViz { get; set; }
|
public string UnitModelVendorViz { get; set; }
|
||||||
public string UnitDescriptionViz { get; set; }
|
public string UnitDescriptionViz { get; set; }
|
||||||
public bool UnitMeteredViz { get; set; }
|
public bool UnitMeteredViz { get; set; }
|
||||||
public string UnitLastMeterViz { get; set; }//for qbi
|
|
||||||
|
|
||||||
//PHYSICAL ADDRESS
|
//PHYSICAL ADDRESS
|
||||||
public string AddressViz { get; set; }
|
public string AddressViz { get; set; }
|
||||||
|
|||||||
@@ -6362,10 +6362,14 @@ namespace AyaNovaQBI
|
|||||||
|
|
||||||
if (s.IndexOf("~UNIT_METER~") != -1)
|
if (s.IndexOf("~UNIT_METER~") != -1)
|
||||||
{
|
{
|
||||||
if (!up[0].Metered)
|
if (!u.UnitMeteredViz)
|
||||||
s = s.Replace("~UNIT_METER~", "");
|
s = s.Replace("~UNIT_METER~", "");
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
//todo: fetch full unit record here to get lastmeter from it
|
||||||
|
// [HttpGet("unit/meter-reading/{id}")]
|
||||||
s = s.Replace("~UNIT_METER~", u.UnitLastMeterViz);
|
s = s.Replace("~UNIT_METER~", u.UnitLastMeterViz);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s.IndexOf("~UNIT_MAKE~") != -1)
|
if (s.IndexOf("~UNIT_MAKE~") != -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user