This commit is contained in:
@@ -24,5 +24,31 @@ namespace AyaNovaQBI
|
||||
}
|
||||
|
||||
|
||||
public static 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
|
||||
//Fetch AyaNova license
|
||||
//Check if licensed
|
||||
//check if build date is within licensed date (how did I do that automated build date thing?)
|
||||
//check that AyaNova version matches required minimum for this QBI (
|
||||
|
||||
//PFC - Util.QBValidate stuff:
|
||||
//Validate QB connection can be made and open connection and start session with QB (see Util.QBValidate in v7
|
||||
//once connected collect the country, version we are dealing with (Util.qbValidate)
|
||||
//confirm qb is 2008 or newer and bail if not (util.qbvalidate)
|
||||
//cache company name and other qb info
|
||||
//PFC - PopulateQBListCache()
|
||||
//PFC - PopulateAyaListCache()
|
||||
//PFC - integration object check (fetch or create if not present) (Util.integrationObjectCheck())
|
||||
//PFC - Validate settings, create if necessary (Util.ValidateSettings()) and save
|
||||
//PFC - verify integration mapped objects still exist at each end (Util.PreFlightCheck() line 199)
|
||||
//DONE
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user