This commit is contained in:
@@ -34,12 +34,16 @@ namespace AyaNovaQBI
|
||||
}
|
||||
|
||||
|
||||
public static bool InitializeQBI()
|
||||
public static async Task<bool> InitializeQBI()
|
||||
{
|
||||
//COPY most of this code from qbi v7 becuase it has a lot of edge cases in it and it's complex and thorough, but break it into abstracted bits so can be replicated in other accounting add-on's more easily
|
||||
|
||||
//This is pre-pfc block of stuff that doesn't map well from v7 qbi plugin to here so replicate it in spirit here but not much is copyable just the concepts
|
||||
//LOGIN to v8 first
|
||||
auth d = new auth();
|
||||
if (d.ShowDialog() == System.Windows.Forms.DialogResult.Cancel)
|
||||
return false;
|
||||
|
||||
//Fetch AyaNova license
|
||||
//Check if licensed
|
||||
//check if build date is within licensed date (how did I do that automated build date thing?)
|
||||
|
||||
Reference in New Issue
Block a user