function transferSoftwareLicensesAndVersions($ID)
{
global $DB;
$query = "SELECT `id`\n FROM `glpi_softwarelicenses`\n WHERE `softwares_id` = '{$ID}'";
foreach ($DB->request($query) as $data) {
$this->transferItem('SoftwareLicense', $data['id'], $data['id']);
}
$query = "SELECT `id`\n FROM `glpi_softwareversions`\n WHERE `softwares_id` = '{$ID}'";
foreach ($DB->request($query) as $data) {
// Just Store the info.
$this->addToAlreadyTransfer('SoftwareVersion', $data['id'], $data['id']);
}
}