$ttsc->saveRegistrationKey(); } //We must ensure that the data is up to date //Otherwise version check will fail. $ttsc->sendCompanyData($c_obj->getId()); $ttsc->sendCompanyUserLocationData($c_obj->getId()); $ttsc->sendCompanyUserCountData($c_obj->getId()); $ttsc->sendCompanyVersionData($c_obj->getId()); //Check for new license once it starts expiring. //Help -> About, checking for new versions also gets the updated license file. if ($c_obj->getID() == $config_vars['other']['primary_company_id'] and getTTProductEdition() > TT_PRODUCT_COMMUNITY) { if (!isset($system_settings['license'])) { $system_settings['license'] = NULL; } $license = new TTLicense(); $license->checkLicenseFile($system_settings['license']); } //Only need to call this on the last company if ($i == $clf->getRecordCount() - 1) { $latest_version = $ttsc->isLatestVersion($c_obj->getId()); $latest_tax_engine_version = $ttsc->isLatestTaxEngineVersion($c_obj->getId()); $latest_tax_data_version = $ttsc->isLatestTaxDataVersion($c_obj->getId()); $sslf = new SystemSettingListFactory(); $sslf->getByName('new_version'); if ($sslf->getRecordCount() == 1) { $obj = $sslf->getCurrent(); } else { $obj = new SystemSettingListFactory(); } $obj->setName('new_version'); if ($latest_version == FALSE or $latest_tax_engine_version == FALSE or $latest_tax_data_version == FALSE) {