48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
$comptes->importPlan();
require GARRADIN_ROOT . '/include/class.compta_categories.php';
$comptes = new Garradin_Compta_Categories;
$comptes->importCategories();
}
utils::clearCaches();
$config->setVersion(garradin_version());
echo '<h4>Mise à jour terminée.</h4>
<p><a href="./">Retour</a></p>';
?>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
$comptes->importPlan();
require GARRADIN_ROOT . '/include/class.compta_categories.php';
$comptes = new Garradin_Compta_Categories;
$comptes->importCategories();
}
elseif (version_compare($v, '0.4.3', '<'))
{
$db->exec('DROP TABLE compta_exercices;');
$db->exec('
CREATE TABLE compta_exercices
-- Exercices
(
id INTEGER PRIMARY KEY,
libelle TEXT NOT NULL,
debut TEXT NOT NULL DEFAULT CURRENT_DATE,
fin TEXT NULL DEFAULT NULL,
cloture INTEGER NOT NULL DEFAULT 0
);');
require GARRADIN_ROOT . '/include/class.compta_exercices.php';
$ex = new Garradin_Compta_Exercices;
$ex->add(array('libelle' => 'Premier exercice', 'debut' => date('Y-01-01'), 'fin' => date('Y-12-31')));
}
utils::clearCaches();
$config->setVersion(garradin_version());
echo '<h4>Mise à jour terminée.</h4>
<p><a href="./">Retour</a></p>';
?>
|