This commit is contained in:
@@ -3110,6 +3110,17 @@ namespace AyaNova.PlugIn.V8
|
|||||||
dynamic d = new JObject();
|
dynamic d = new JObject();
|
||||||
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
progress.Op(ObjectTypeName + " " + c.WorkorderService.ServiceNumber);
|
||||||
|
|
||||||
|
if (c.FromPMID != Guid.Empty)
|
||||||
|
{
|
||||||
|
d.fromPMId = await Getv7v8IdMapNullOk(c.FromPMID, RootObjectTypes.WorkorderPreventiveMaintenance, false, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (c.FromQuoteID != Guid.Empty)
|
||||||
|
{
|
||||||
|
d.fromQuoteId = await Getv7v8IdMapNullOk(c.FromQuoteID, RootObjectTypes.WorkorderPreventiveMaintenance, false, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
d.serial = c.WorkorderService.ServiceNumber;
|
d.serial = c.WorkorderService.ServiceNumber;
|
||||||
if (c.WorkorderService.ServiceNumber > _highestWorkOrderNumberExported)
|
if (c.WorkorderService.ServiceNumber > _highestWorkOrderNumberExported)
|
||||||
_highestWorkOrderNumberExported = c.WorkorderService.ServiceNumber;
|
_highestWorkOrderNumberExported = c.WorkorderService.ServiceNumber;
|
||||||
@@ -3717,6 +3728,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
var rMainObject = await util.PostAsync("quote", d);
|
var rMainObject = await util.PostAsync("quote", d);
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
|
Addv7v8IdMap(c.WorkorderQuote.ID, RavenId);//some things need this id to link to
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
|
|
||||||
|
|
||||||
@@ -4085,6 +4097,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
long RavenId = util.IdFromResponse(rMainObject);
|
long RavenId = util.IdFromResponse(rMainObject);
|
||||||
Addv7v8IdMap(c.ID, RavenId);
|
Addv7v8IdMap(c.ID, RavenId);
|
||||||
|
Addv7v8IdMap(c.WorkorderPreventiveMaintenance.ID, RavenId);//some things need this id to link to
|
||||||
d = rMainObject.ObjectResponse["data"];
|
d = rMainObject.ObjectResponse["data"];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
|
||||||
<!-- Development test MSSQL DB -->
|
<!-- Development test MSSQL DB
|
||||||
<ConnectionType>DataBase</ConnectionType>
|
<ConnectionType>DataBase</ConnectionType>
|
||||||
<DataBaseType>MSSQL</DataBaseType>
|
<DataBaseType>MSSQL</DataBaseType>
|
||||||
<DataBaseConnectionString>Server=DEV-V7-LAPTOP\SQLEXPRESS;initial catalog=AyaNova;User Id=sa; Password = abraxis;</DataBaseConnectionString>
|
<DataBaseConnectionString>Server=DEV-V7-LAPTOP\SQLEXPRESS;initial catalog=AyaNova;User Id=sa; Password = abraxis;</DataBaseConnectionString>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- DEVELOPMENT embedded Firebird database -->
|
||||||
<!-- DEVELOPMENT embedded Firebird database
|
|
||||||
|
|
||||||
<ConnectionType>DataBase</ConnectionType>
|
<ConnectionType>DataBase</ConnectionType>
|
||||||
<DataBaseType>FireBird</DataBaseType>
|
<DataBaseType>FireBird</DataBaseType>
|
||||||
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.fdb;Dialect=3;</DataBaseConnectionString>
|
<DataBaseConnectionString>ServerType=1;DataBase=C:\data\AyaNova\database\AYANOVA.fdb;Dialect=3;</DataBaseConnectionString>
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- DataPortal
|
<!-- DataPortal
|
||||||
|
|||||||
Reference in New Issue
Block a user