From 1482b7f6c6b13e4ab66138bbe291572ce65aea42 Mon Sep 17 00:00:00 2001 From: Adrien Gallou Date: Wed, 18 Sep 2024 13:30:12 +0200 Subject: [PATCH] correction stockage montant cotisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si on a des personnes morales avec 18 membres on a une cotisation en de 1080€ TTC. Or le stockage est en float(5,2), c'est donc 999,99 qui était stocké en base. Le paiement était fait avec la bonne somme, mais l'édition de la facture était à 1000€ TTC et non 1080€. On augmente la taille du champ pour pouvoir gérer ce cas. --- db/migrations/20240918112441_cotisation_type.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrations/20240918112441_cotisation_type.php diff --git a/db/migrations/20240918112441_cotisation_type.php b/db/migrations/20240918112441_cotisation_type.php new file mode 100644 index 000000000..de523c4dd --- /dev/null +++ b/db/migrations/20240918112441_cotisation_type.php @@ -0,0 +1,12 @@ +execute("ALTER TABLE afup_cotisations MODIFY montant float(6,2) unsigned NOT NULL DEFAULT '0.00'"); + } +}