case 4635
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
AppName=AyaNova V8 Migrate plugin
|
AppName=AyaNova V8 Migrate plugin
|
||||||
AppVerName=AyaNova V8 Migrate plugin 8.0.5
|
AppVerName=AyaNova V8 Migrate plugin 8.0.6
|
||||||
AppPublisher=Ground Zero Tech-Works Inc.
|
AppPublisher=Ground Zero Tech-Works Inc.
|
||||||
AppPublisherURL=https://www.ayanova.com/
|
AppPublisherURL=https://www.ayanova.com/
|
||||||
AppSupportUrl=http://forum.ayanova.com
|
AppSupportUrl=http://forum.ayanova.com
|
||||||
AppVersion=8.0.5
|
AppVersion=8.0.6
|
||||||
;App ID is used for updating and patching
|
;App ID is used for updating and patching
|
||||||
;see: http://www.jrsoftware.org/iskb.php?updateinstall
|
;see: http://www.jrsoftware.org/iskb.php?updateinstall
|
||||||
AppId=v8migrate
|
AppId=v8migrate
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
public string PluginVersion
|
public string PluginVersion
|
||||||
{
|
{
|
||||||
get { return "8.0.5"; }
|
get { return "8.0.6"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string About
|
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
|
//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
|
//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);
|
await util.PostAsync("unit/meter-reading", dm);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user