1
0
forked from ScoDoc/ScoDoc

ajustement bulletin web affichage malus negatif

This commit is contained in:
Jean-Marie Place 2023-07-30 16:08:47 +02:00
parent ead32c8a06
commit 499d42a912

View File

@ -376,8 +376,12 @@ class releveBUT extends HTMLElement {
}</div>
<div class=info>`;
if (!dataUE.date_capitalisation) {
output += ` Bonus&nbsp;:&nbsp;${dataUE.bonus || 0}&nbsp;-
Malus&nbsp;:&nbsp;${dataUE.malus || 0}`;
output += ` Bonus&nbsp;:&nbsp;${dataUE.bonus || 0}&nbsp;- `;
if(dataUE.malus >= 0) {
output += `Malus&nbsp;:&nbsp;${dataUE.malus || 0}`;
} else {
output += `Bonus&nbsp;complémentaire&nbsp;:&nbsp;${-dataUE.malus || 0}`;
}
} else {
output += ` le ${this.ISOToDate(
dataUE.date_capitalisation.split("T")[0]