This commit is contained in:
2020-11-25 19:52:12 +00:00
parent c93c2bcf56
commit 489fb7aaf4

View File

@@ -942,7 +942,7 @@ namespace AyaNova.PlugIn.V8
if (ShouldExportCustom) if (ShouldExportCustom)
d.customFields = CustomFieldData(c, DateCustomFields); d.customFields = CustomFieldData(c, DateCustomFields);
var rMainObject = await util.PostAsync(RavenObjectName, d.ToString()); var rMainObject = await util.PostAsync("loan-unit", d.ToString());
long RavenId = util.IdFromResponse(rMainObject); long RavenId = util.IdFromResponse(rMainObject);
AddMap(c.ID, RavenId); AddMap(c.ID, RavenId);
@@ -972,7 +972,7 @@ namespace AyaNova.PlugIn.V8
repost = true; repost = true;
} }
if (repost) if (repost)
await util.PutAsync(RavenObjectName, d.ToString()); await util.PutAsync("loan-unit", d.ToString());
//----- //-----
//Event log fixup //Event log fixup
@@ -1024,7 +1024,7 @@ namespace AyaNova.PlugIn.V8
if (ShouldExportCustom) if (ShouldExportCustom)
d.customFields = CustomFieldData(c, DateCustomFields); d.customFields = CustomFieldData(c, DateCustomFields);
var rMainObject = await util.PostAsync(RavenObjectName, d.ToString()); var rMainObject = await util.PostAsync("part", d.ToString());
long RavenId = util.IdFromResponse(rMainObject); long RavenId = util.IdFromResponse(rMainObject);
AddMap(c.ID, RavenId); AddMap(c.ID, RavenId);
@@ -1595,7 +1595,7 @@ namespace AyaNova.PlugIn.V8
if (IsDuplicateMapItem(c.ID, c.WorkorderQuote.QuoteNumber.ToString(), progress)) continue; if (IsDuplicateMapItem(c.ID, c.WorkorderQuote.QuoteNumber.ToString(), progress)) continue;
var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderQuote, c.ID); var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderQuote, c.ID);
//make one on the server to update //make one on the server to update
var rMainObject = await util.PostAsync(RavenObjectName + "/Create?serial=" + c.WorkorderQuote.QuoteNumber); var rMainObject = await util.PostAsync("quote" + "/Create?serial=" + c.WorkorderQuote.QuoteNumber);
long RavenId = util.IdFromResponse(rMainObject); long RavenId = util.IdFromResponse(rMainObject);
AddMap(c.ID, RavenId); AddMap(c.ID, RavenId);
@@ -1640,7 +1640,7 @@ namespace AyaNova.PlugIn.V8
repost = true; repost = true;
} }
if (repost) if (repost)
await util.PutAsync(RavenObjectName, d.ToString()); await util.PutAsync("quote", d.ToString());
//----- //-----
//Event log fixup //Event log fixup
@@ -1679,7 +1679,7 @@ namespace AyaNova.PlugIn.V8
if (IsDuplicateMapItem(c.ID, c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber.ToString(), progress)) continue; if (IsDuplicateMapItem(c.ID, c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber.ToString(), progress)) continue;
var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderPreventiveMaintenance, c.ID); var ObjectTID = new TypeAndID(RootObjectTypes.WorkorderPreventiveMaintenance, c.ID);
//make one on the server to update //make one on the server to update
var rMainObject = await util.PostAsync(RavenObjectName + "/Create?serial=" + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber); var rMainObject = await util.PostAsync("pm" + "/Create?serial=" + c.WorkorderPreventiveMaintenance.PreventiveMaintenanceNumber);
long RavenId = util.IdFromResponse(rMainObject); long RavenId = util.IdFromResponse(rMainObject);
AddMap(c.ID, RavenId); AddMap(c.ID, RavenId);
@@ -1724,7 +1724,7 @@ namespace AyaNova.PlugIn.V8
repost = true; repost = true;
} }
if (repost) if (repost)
await util.PutAsync(RavenObjectName, d.ToString()); await util.PutAsync("pm", d.ToString());
//----- //-----
//Event log fixup //Event log fixup