Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche

Erreur dans PARM_POSTE pour la compta française
This commit is contained in:
Dany De Bontridder 2020-04-04 13:48:36 +02:00
parent 8f95aeed5d
commit 0b55332b02
7 changed files with 73 additions and 6 deletions

View file

@ -113,8 +113,11 @@ class Database extends DatabaseCore
}
/**
* \brief loop to apply all the path to a folder or
* a template
* \brief loop to apply all the path to a folder or a template
* Upgrade check if the folder $p_name needs to be upgrade thanks the variable DBVERSION
* and run all the SQL script named upgradeX.sql from the folder noalyss/include/sql/patch
* until X equal DBVERSION-1
*
* \param $p_name database name
*
*/
@ -142,8 +145,7 @@ class Database extends DatabaseCore
echo "<li>Patching " . $p_name .
" from the version " . $this->get_version() . " to $to ";
$this->execute_script(NOALYSS_INCLUDE . '/sql/patch/upgrade' . $i . '.sql');
echo $succeed;
if (!DEBUG)
ob_start();
@ -214,9 +216,17 @@ class Database extends DatabaseCore
$country = $this->get_value("select pr_value from parameter where pr_id='MY_COUNTRY'");
$this->execute_script(NOALYSS_INCLUDE . "/sql/patch/upgrade61." . $country . ".sql");
}
/**
* Bug in parm_code for FRANCE
*/
if ($i == 141 ) {
$country = $this->get_value("select pr_value from parameter where pr_id='MY_COUNTRY'");
$this->execute_script(NOALYSS_INCLUDE . "/sql/patch/upgrade141." . $country . ".sql");
}
if (!DEBUG)
ob_end_clean();
}
}
echo '</ul>';