case 4635

This commit is contained in:
2025-05-08 14:37:19 +00:00
parent c0e77aa731
commit a46739abd0
2 changed files with 11 additions and 4 deletions

View File

@@ -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);
}