case 4635
This commit is contained in:
@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
public string PluginVersion
|
||||
{
|
||||
get { return "8.0.5"; }
|
||||
get { return "8.0.6"; }
|
||||
}
|
||||
|
||||
public string About
|
||||
@@ -2751,7 +2751,14 @@ namespace AyaNova.PlugIn.V8
|
||||
{
|
||||
//workorder items in v7 are only mapped for this one op and only return the workorderitemUnit id which is
|
||||
//what v8 uses here if it fails, then if fails and null is ok here
|
||||
dm.workOrderItemUnitId = await Getv7v8IdMapNullOk(ui.LT_UnitMeterReading_Label_WorkorderItemID.Value, RootObjectTypes.WorkorderItem, false);
|
||||
|
||||
//case 4635 - doesn't actually do what the original comment above said it should do which is accept missing workorder items
|
||||
//dm.workOrderItemUnitId = await Getv7v8IdMapNullOk(ui.LT_UnitMeterReading_Label_WorkorderItemID.Value, RootObjectTypes.WorkorderItem, false);
|
||||
long? tempId = await Getv7v8IdMapNullOk(ui.LT_UnitMeterReading_Label_WorkorderItemID.Value, RootObjectTypes.WorkorderItem, false, true);
|
||||
if (tempId != 0 && tempId != null)
|
||||
{
|
||||
dm.workOrderItemUnitId = tempId;
|
||||
}
|
||||
}
|
||||
await util.PostAsync("unit/meter-reading", dm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user