This commit is contained in:
2022-06-20 00:21:06 +00:00
parent 4d524efb4b
commit 7b99160632
9 changed files with 169 additions and 37 deletions

View File

@@ -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?)