This commit is contained in:
@@ -1104,7 +1104,7 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync(ObjectTypeName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("project", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
@@ -1181,7 +1181,7 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync(ObjectTypeName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("purchase-order", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
@@ -1251,7 +1251,7 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync(ObjectTypeName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("unit", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
@@ -1334,7 +1334,7 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync(ObjectTypeName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("unit-model", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
@@ -1413,7 +1413,7 @@ namespace AyaNova.PlugIn.V8
|
||||
if (ShouldExportCustom)
|
||||
d.customFields = CustomFieldData(c, DateCustomFields);
|
||||
|
||||
var rMainObject = await util.PostAsync(ObjectTypeName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("vendor", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
|
||||
@@ -1498,7 +1498,7 @@ namespace AyaNova.PlugIn.V8
|
||||
|
||||
|
||||
|
||||
var rMainObject = await util.PostAsync(RavenRouteName, d.ToString());
|
||||
var rMainObject = await util.PostAsync("workorder", d.ToString());
|
||||
long RavenId = util.IdFromResponse(rMainObject);
|
||||
AddMap(c.ID, RavenId);
|
||||
d = rMainObject.ObjectResponse["data"];
|
||||
@@ -1531,7 +1531,7 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
|
||||
//put the final object
|
||||
await util.PutAsync(RavenRouteName, d.ToString());
|
||||
await util.PutAsync("workorder", d.ToString());
|
||||
//-----
|
||||
|
||||
//Event log fixup
|
||||
|
||||
Reference in New Issue
Block a user