From 499d42a9122f85a6ce848f42c66a80d82c008816 Mon Sep 17 00:00:00 2001 From: jmpla Date: Sun, 30 Jul 2023 16:08:47 +0200 Subject: [PATCH] ajustement bulletin web affichage malus negatif --- app/static/js/releve-but.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/static/js/releve-but.js b/app/static/js/releve-but.js index 7c6ec4aec9..e011d395db 100644 --- a/app/static/js/releve-but.js +++ b/app/static/js/releve-but.js @@ -376,8 +376,12 @@ class releveBUT extends HTMLElement { }
`; if (!dataUE.date_capitalisation) { - output += ` Bonus : ${dataUE.bonus || 0} - - Malus : ${dataUE.malus || 0}`; + output += ` Bonus : ${dataUE.bonus || 0} - `; + if(dataUE.malus >= 0) { + output += `Malus : ${dataUE.malus || 0}`; + } else { + output += `Bonus complémentaire : ${-dataUE.malus || 0}`; + } } else { output += ` le ${this.ISOToDate( dataUE.date_capitalisation.split("T")[0]