From a788b7ece8b6ee401b52a3644b6aebe8289b6c6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr>
Date: Wed, 28 Jun 2023 17:17:02 +0200
Subject: [PATCH] Nouveau taux HETD & initialisation des nouvelles
 nomenclatures v21

---
 admin/migration/v21Nomenclatures.php | 35 ++++++++++++++++++++++++++++
 data/taux_remu.php                   |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 admin/migration/v21Nomenclatures.php

diff --git a/admin/migration/v21Nomenclatures.php b/admin/migration/v21Nomenclatures.php
new file mode 100644
index 0000000000..71bb42e4cf
--- /dev/null
+++ b/admin/migration/v21Nomenclatures.php
@@ -0,0 +1,35 @@
+<?php
+
+
+
+
+
+class v21Nomenclatures extends AbstractMigration
+{
+
+    public function description(): string
+    {
+        return "Peuplement des nouvelles nomenclatures";
+    }
+
+
+
+    public function utile(): bool
+    {
+        return $this->manager->hasNew('table', 'TAUX_REMU');
+    }
+
+
+
+    public function after()
+    {
+        $c   = $this->manager->getOseAdmin()->getConsole();
+        $du = $this->manager->getBdd()->dataUpdater();
+
+        $du->run('install', 'TAUX_REMU');
+        $du->run('install', 'TAUX_REMU_VALEUR');
+        $du->run('install', 'JOUR_FERIE');
+        $du->run('install', 'TYPE_SERVICE');
+        $du->run('install', 'TYPE_MISSION');
+    }
+}
\ No newline at end of file
diff --git a/data/taux_remu.php b/data/taux_remu.php
index 7709155e6a..f6dfdb8839 100644
--- a/data/taux_remu.php
+++ b/data/taux_remu.php
@@ -8,6 +8,7 @@ return [
             '25/06/2014' => 40.91,
             '01/02/2017' => 41.41,
             '01/07/2022' => 42.86,
+            '01/07/2023' => 43.50,
         ],
     ],
     'SMIC' => [
-- 
GitLab