This commit is contained in:
2019-10-07 21:43:30 +00:00
parent 56d37f0fd9
commit 036d77bbc7
5 changed files with 25 additions and 6 deletions

View File

@@ -114,13 +114,19 @@ namespace AyaNova.PlugIn.QBOI
return false;
}
if (AyaNovaVersion.Major != 7)
{
MessageBox.Show("This AyaNovaQBOI plugin requires AyaNova version 7");
return false;
}
if (AyaNovaVersion.Minor < 6)
{
MessageBox.Show("This AyaNovaQBOI plugin requires AyaNova version 7.6 or higher");
return false;
}
Util.GlobalSettings = AyaBizUtils.GlobalSettings;
ObjectsWeCanDealWith = new List<RootObjectTypes>();

View File

@@ -414,10 +414,10 @@ namespace AyaNova.PlugIn.QBOI
{
//used to tie this session to the auth key on our server for fetching later
QBOI2_SESSION_TOKEN = RandomInt64().ToString();
string LicenseId = GlobalEx.GetItem().DigestValue;
//shell out to browser for user to login to QB
System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN + "/"+ LicenseId);
System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN + "/"+ AyaBizUtils.LicId);
//Open dialog that polls for token repeatedly, there is a delay built into the server